本文整理汇总了Python中Download.Download.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python Download.__init__方法的具体用法?Python Download.__init__怎么用?Python Download.__init__使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Download.Download
的用法示例。
在下文中一共展示了Download.__init__方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: from Download import Download [as 别名]
# 或者: from Download.Download import __init__ [as 别名]
def __init__(self, phenny):
Download.__init__(self)
self.re_title = re.compile('ustream\.vars\.channelTitle\=\"(.*?)\"\;ustream\.vars\.')
self.re_channel = re.compile('ustream\.vars\.channelId\=(\d*?)\;ustream\.vars\.')
self.apikey = phenny.config.ustreamdevapikey
self.urltype = None
self.h = {}
示例2: __init__
# 需要导入模块: from Download import Download [as 别名]
# 或者: from Download.Download import __init__ [as 别名]
def __init__(self):
Download.__init__(self)
self.re_live_id = re.compile('stream_id \= (\d+?)\;')
self.re_recorded_id = re.compile('full_program_clipid \= (\d+?)\;')
self.re_live_title = re.compile('stream_title \= "(.+?)"\;')
self.re_recorded_title = re.compile('full_program_title \= "(.+?)"\;')
self.type = None
self.urltype = None
self.h = {}
示例3: __init__
# 需要导入模块: from Download import Download [as 别名]
# 或者: from Download.Download import __init__ [as 别名]
def __init__(self, phenny):
Download.__init__(self)
self.re_id = re.compile("^[a-zA-Z0-9\_\-]{11}$")
self.re_fragment = re.compile("^t\=((\d+)h)?((\d+)m)?((\d+)s)?$")
self.urltype = VidType.YOUTUBE
self.h = {}
self.gdatahost = 'gdata.youtube.com'
self.developer_key = phenny.config.youtubedevapikey
self.gdataxml = None
示例4: __init__
# 需要导入模块: from Download import Download [as 别名]
# 或者: from Download.Download import __init__ [as 别名]
def __init__(self):
Download.__init__(self)
self.h = {}
示例5: __init__
# 需要导入模块: from Download import Download [as 别名]
# 或者: from Download.Download import __init__ [as 别名]
def __init__(self):
Download.__init__(self)
self.re_id = re.compile('<link rel="media:video" href="http:\/\/www\.hulu\.com\/embed\/(.*?)"')
self.re_title = re.compile('<meta property="og:title" content="(.*?)"')
self.urltype = VidType.HULU
self.h = {}
示例6: __init__
# 需要导入模块: from Download import Download [as 别名]
# 或者: from Download.Download import __init__ [as 别名]
def __init__(self):
Download.__init__(self)
self.urltype = VidType.REVVER
self.h = {}
示例7: __init__
# 需要导入模块: from Download import Download [as 别名]
# 或者: from Download.Download import __init__ [as 别名]
def __init__(self):
Download.__init__(self)
self.re_id = re.compile("swfobject\.embedSWF\(\"(.*?)\"")
self.re_title = re.compile("\<title\>MIT TechTV \&ndash\; (.*?)\<\/title\>")
self.urltype = VidType.MITTECHTV
self.h = {}
示例8: __init__
# 需要导入模块: from Download import Download [as 别名]
# 或者: from Download.Download import __init__ [as 别名]
def __init__(self, phenny):
Download.__init__(self)
self.urltype = None # 97 - TWITCHTV
self.type = None
self.consumerkey = phenny.config.justintvkey
self.h = {}
示例9: __init__
# 需要导入模块: from Download import Download [as 别名]
# 或者: from Download.Download import __init__ [as 别名]
def __init__(self):
Download.__init__(self)
self.urltype = VidType.VIDDLER
self.h = {}
示例10: __init__
# 需要导入模块: from Download import Download [as 别名]
# 或者: from Download.Download import __init__ [as 别名]
def __init__(self):
Download.__init__(self)
self.type = None
self.urltype = None # 90 - QIKL, 91 - QIKR
self.h = {}
示例11: __init__
# 需要导入模块: from Download import Download [as 别名]
# 或者: from Download.Download import __init__ [as 别名]
def __init__(self):
Download.__init__(self)
self.urltype = VidType.LIVELEAK
self.h = {}
示例12: __init__
# 需要导入模块: from Download import Download [as 别名]
# 或者: from Download.Download import __init__ [as 别名]
def __init__(self):
Download.__init__(self)
self.urltype = VidType.FUNNYORDIE
self.h = {}
示例13: __init__
# 需要导入模块: from Download import Download [as 别名]
# 或者: from Download.Download import __init__ [as 别名]
def __init__(self):
Download.__init__(self)
self.re_id = re.compile("<meta\s+name\=\"item\-id\"\s+content\=\"(.*?)\"")
self.re_title = re.compile("<meta\s+name\=\"title\"\s+content\=\"(.*?)\"")
self.urltype = VidType.VEOH
self.h = {}
示例14: __init__
# 需要导入模块: from Download import Download [as 别名]
# 或者: from Download.Download import __init__ [as 别名]
def __init__(self):
Download.__init__(self)
self.urltype = VidType.MYSPACE
self.h = {}
示例15: __init__
# 需要导入模块: from Download import Download [as 别名]
# 或者: from Download.Download import __init__ [as 别名]
def __init__(self):
Download.__init__(self)
self.re_id = re.compile('revision3\.com\/player-v(\d+?)\"')
self.re_title = re.compile('<title>(.*?)</title>')
self.urltype = VidType.REVISION3
self.h = {}