当前位置: 首页>>代码示例>>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;未经允许,请勿转载。