This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Вывод ошибок | |
ini_set('display_errors', 1); | |
ini_set('memory_limit', '512M'); | |
error_reporting(E_ERROR); | |
// Подключаем | |
define('MODX_API_MODE', true); | |
require dirname(dirname(dirname(__FILE__))).'/index.php'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
from SimpleHTTPServer import SimpleHTTPRequestHandler | |
from SocketServer import TCPServer | |
from StringIO import StringIO | |
from lxml import html | |
import webbrowser | |
import urllib2 | |
import gzip | |
import re |