本文整理匯總了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 = {}