def __init__(self): self.cache = Cache('kinopoisk.db') self.html = Clear() self.http = HTTP() self.headers = { 'User-Agent': 'Mozilla/5.0 (Windows NT 6.1; rv:10.0.2) Gecko/20100101 Firefox/10.0.2', 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'Accept-Language': 'ru-ru,ru;q=0.8,en-us;q=0.5,en;q=0.3', 'Cache-Control': 'no-cache', 'Referer': 'http://www.kinopoisk.ru/level/7/' }
def __init__(self): self.api_key = '1D62F2F90030C444' self.cache = Cache('tvdb.db') self.http = HTTP() self.headers = { 'User-Agent': 'Mozilla/5.0 (Windows NT 6.1; rv:10.0.2) Gecko/20100101 Firefox/10.0.2', 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'Accept-Language': 'ru-ru,ru;q=0.8,en-us;q=0.5,en;q=0.3', 'Cache-Control': 'no-cache', 'Referer': 'http://www.thetvdb.com/' }
def __init__(self): self.setting = Setting() self.re_auth = re.compile(r'profile\.php\?mode=sendpassword"') self.re_captcha = re.compile(r'<img src="(\/\/[^\/]+/captcha/[^"]+)"') self.re_captcha_sid = re.compile(r'<input type="hidden" name="cap_sid" value="([^"]+)">') self.re_captcha_code = re.compile(r'<input type="text" name="(cap_code_[^"]+)"') self.captcha_sid = None self.captcha_code = None self.captcha_code_value = None self.http = HTTP() self.headers = { 'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.95 Safari/537.36', 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'Accept-Language': 'ru-ru,ru;q=0.8,en-us;q=0.5,en;q=0.3', 'Cache-Control': 'no-cache', 'Referer': 'http://rutracker.lib/forum/index.php' }