當前位置: 首頁>>代碼示例>>Python>>正文


Python Download.__init__方法代碼示例

本文整理匯總了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 = {}
開發者ID:FrankBuss,項目名稱:1dv8,代碼行數:9,代碼來源:Ustream.py

示例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 = {}
開發者ID:FrankBuss,項目名稱:1dv8,代碼行數:11,代碼來源:FORAtv.py

示例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
開發者ID:FrankBuss,項目名稱:1dv8,代碼行數:11,代碼來源:YouTube.py

示例4: __init__

# 需要導入模塊: from Download import Download [as 別名]
# 或者: from Download.Download import __init__ [as 別名]
	def __init__(self):
		Download.__init__(self)
		self.h = {}
開發者ID:FrankBuss,項目名稱:1dv8,代碼行數:5,代碼來源:Current.py

示例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 = {}
開發者ID:FrankBuss,項目名稱:1dv8,代碼行數:8,代碼來源:Hulu.py

示例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 = {}
開發者ID:FrankBuss,項目名稱:1dv8,代碼行數:6,代碼來源:Revver.py

示例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 = {}
開發者ID:FrankBuss,項目名稱:1dv8,代碼行數:8,代碼來源:MITTechTV.py

示例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 = {}
開發者ID:FrankBuss,項目名稱:1dv8,代碼行數:8,代碼來源:TwitchTV.py

示例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 = {}
開發者ID:GeekStreams,項目名稱:1dv8,代碼行數:6,代碼來源:Viddler.py

示例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 = {}
開發者ID:FrankBuss,項目名稱:1dv8,代碼行數:7,代碼來源:Qik.py

示例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 = {}
開發者ID:FrankBuss,項目名稱:1dv8,代碼行數:6,代碼來源:LiveLeak.py

示例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 = {}
開發者ID:GeekStreams,項目名稱:1dv8,代碼行數:6,代碼來源:FunnyorDie.py

示例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 = {}
開發者ID:FrankBuss,項目名稱:1dv8,代碼行數:8,代碼來源:Veoh.py

示例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 = {}
開發者ID:FrankBuss,項目名稱:1dv8,代碼行數:6,代碼來源:MySpace.py

示例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 = {}
開發者ID:FrankBuss,項目名稱:1dv8,代碼行數:8,代碼來源:Revision3.py


注:本文中的Download.Download.__init__方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。