本文整理汇总了Python中provider.ContentProvider.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python ContentProvider.__init__方法的具体用法?Python ContentProvider.__init__怎么用?Python ContentProvider.__init__使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类provider.ContentProvider
的用法示例。
在下文中一共展示了ContentProvider.__init__方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: from provider import ContentProvider [as 别名]
# 或者: from provider.ContentProvider import __init__ [as 别名]
def __init__(self, username=None, password=None, filter=None, tmp_dir='/tmp'):
ContentProvider.__init__(self, 'rtvs.sk', 'http://www.rtvs.sk', username, password, filter, tmp_dir)
opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(cookielib.LWPCookieJar()))
urllib2.install_opener(opener)
self.archive_url = self._url('tv.archive.alphabet/')
if not os.path.exists(self.tmp_dir):
os.makedirs(self.tmp_dir)
示例2: __init__
# 需要导入模块: from provider import ContentProvider [as 别名]
# 或者: from provider.ContentProvider import __init__ [as 别名]
def __init__(self, username=None, password=None, filter=None,
tmp_dir='/tmp'):
ContentProvider.__init__(self, 'videacesky.cz',
'http://www.videacesky.cz',
username, password, filter, tmp_dir)
opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(cookielib.LWPCookieJar()))
urllib2.install_opener(opener)
示例3: __init__
# 需要导入模块: from provider import ContentProvider [as 别名]
# 或者: from provider.ContentProvider import __init__ [as 别名]
def __init__(self,username=None,password=None,filter=None):
ContentProvider.__init__(self,'ulozto.cz','https://www.ulozto.cz/',username,password,filter)
self.search_type=''
self.cp = urllib2.HTTPCookieProcessor(cookielib.LWPCookieJar())
self.rh = UloztoHTTPRedirectHandler()
self.rh.throw = False
self.rh.location = None
self.init_urllib()
示例4: __init__
# 需要导入模块: from provider import ContentProvider [as 别名]
# 或者: from provider.ContentProvider import __init__ [as 别名]
def __init__(self, username=None, password=None, filter=None, reverse_eps=False):
ContentProvider.__init__(self, name='sosac.ph', base_url=MOVIES_BASE_URL, username=username,
password=password, filter=filter)
util.init_urllib(self.cache)
cookies = self.cache.get(util.CACHE_COOKIES)
if not cookies or len(cookies) == 0:
util.request(self.base_url)
self.reverse_eps = reverse_eps
示例5: __init__
# 需要导入模块: from provider import ContentProvider [as 别名]
# 或者: from provider.ContentProvider import __init__ [as 别名]
def __init__(self, username=None, password=None, filter=None, quickparser=False):
ContentProvider.__init__(self, 'sledujufilmy.cz', self.urls['Filmy'],
username, password, filter)
# Work around April Fools' Day page
util.init_urllib(self.cache)
self.quickparser=quickparser
cookies = self.cache.get('cookies')
if not cookies or len(cookies) == 0:
util.request(self.base_url)
示例6: __init__
# 需要导入模块: from provider import ContentProvider [as 别名]
# 或者: from provider.ContentProvider import __init__ [as 别名]
def __init__(self, username=None, password=None, filter=None, reverse_eps=False):
ContentProvider.__init__(self, name='sosac.ph', base_url=MOVIES_BASE_URL, username=username,
password=password, filter=filter)
opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(cookielib.LWPCookieJar()))
urllib2.install_opener(opener)
self.reverse_eps = reverse_eps
self.streamujtv_user = None
self.streamujtv_pass = None
self.streamujtv_location = None
示例7: __init__
# 需要导入模块: from provider import ContentProvider [as 别名]
# 或者: from provider.ContentProvider import __init__ [as 别名]
def __init__(self,username=None,password=None,filter=None):
ContentProvider.__init__(self,'zkouknito.cz','http://zkouknito.cz/',username,password,filter)
ck = cookielib.Cookie(version=0, name='confirmed', value='1', port=None, port_specified=False,
domain='zkouknito.cz', domain_specified=True, domain_initial_dot=False,
path='/', path_specified=True, secure=False, expires=None, discard=True,
comment=None, comment_url=None, rest={'HttpOnly': None}, rfc2109=False)
cj = cookielib.LWPCookieJar()
cj.set_cookie(ck)
opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(cj))
urllib2.install_opener(opener)
示例8: __init__
# 需要导入模块: from provider import ContentProvider [as 别名]
# 或者: from provider.ContentProvider import __init__ [as 别名]
def __init__(self, username=None, password=None, filter=None, reverse_eps=False):
ContentProvider.__init__(self, name='sosac.ph', base_url=MOVIES_BASE_URL, username=username,
password=password, filter=filter)
opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(cookielib.LWPCookieJar()))
urllib2.install_opener(opener)
self.reverse_eps = reverse_eps
if self.lang == ISO_639_1_CZECH:
self.ISO_639_1_CZECH = ISO_639_1_CZECH + '/'
else:
self.ISO_639_1_CZECH = ''
示例9: __init__
# 需要导入模块: from provider import ContentProvider [as 别名]
# 或者: from provider.ContentProvider import __init__ [as 别名]
def __init__(self, username=None, password=None, filter=None):
try:
ContentProvider.__init__(self, name='czsklib', base_url='/', username=username, password=password, filter=filter)
util.init_urllib()
self.wsuser = username
self.wspass = password
self.language = language.getLanguage()
self.init_trans()
orangelog.logDebug("init orangetv...");
self.session = None
except:
orangelog.logError("init orangetv failed.\n%s"%traceback.format_exc())
pass
示例10: __init__
# 需要导入模块: from provider import ContentProvider [as 别名]
# 或者: from provider.ContentProvider import __init__ [as 别名]
def __init__(self, username=None, password=None, filter=None, reverse_eps=False):
ContentProvider.__init__(self, name='prehraj.me', base_url=MOVIES_BASE_URL, username=username,
password=password, filter=filter)
opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(cookielib.LWPCookieJar()))
urllib2.install_opener(opener)
self.reverse_eps = reverse_eps
示例11: __init__
# 需要导入模块: from provider import ContentProvider [as 别名]
# 或者: from provider.ContentProvider import __init__ [as 别名]
def __init__(self,username=None,password=None,filter=None,reverse_eps=False):
ContentProvider.__init__(self,'tv.sosac.ph','http://tv.sosac.ph/',username,password,filter)
opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(cookielib.LWPCookieJar()))
urllib2.install_opener(opener)
self.reverse_eps = reverse_eps
示例12: __init__
# 需要导入模块: from provider import ContentProvider [as 别名]
# 或者: from provider.ContentProvider import __init__ [as 别名]
def __init__(self,username=None,password=None,filter=None,tmp_dir='.'):
ContentProvider.__init__(self,'pohadkar.cz','http://www.pohadkar.cz/',username,password,filter)
opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(cookielib.LWPCookieJar()))
urllib2.install_opener(opener)
self.tmp_dir = tmp_dir
示例13: __init__
# 需要导入模块: from provider import ContentProvider [as 别名]
# 或者: from provider.ContentProvider import __init__ [as 别名]
def __init__(self,username=None,password=None,filter=None,site_url='http://hellspy.cz/'):
ContentProvider.__init__(self,'hellspy.cz',site_url,username,password,filter)
opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(cookielib.LWPCookieJar()))
urllib2.install_opener(opener)
示例14: __init__
# 需要导入模块: from provider import ContentProvider [as 别名]
# 或者: from provider.ContentProvider import __init__ [as 别名]
def __init__(self, username=None, password=None, filter=None, quickparser=False):
ContentProvider.__init__(self, 'tv-archiv.sk', self.urls['Filmy'],
username, password, filter)
示例15: __init__
# 需要导入模块: from provider import ContentProvider [as 别名]
# 或者: from provider.ContentProvider import __init__ [as 别名]
def __init__(self, username=None, password=None, filter=None):
ContentProvider.__init__(self, 'topserialy.to', self.urls['Seriály'],
username, password, filter)