InfoExtractors.py 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601
  1. import base64
  2. import datetime
  3. import itertools
  4. import netrc
  5. import os
  6. import re
  7. import socket
  8. import time
  9. import email.utils
  10. import xml.etree.ElementTree
  11. import random
  12. import math
  13. import operator
  14. import hashlib
  15. import binascii
  16. import urllib
  17. from .utils import *
  18. from .extractor.common import InfoExtractor, SearchInfoExtractor
  19. from .extractor.ard import ARDIE
  20. from .extractor.arte import ArteTvIE
  21. from .extractor.bliptv import BlipTVIE, BlipTVUserIE
  22. from .extractor.comedycentral import ComedyCentralIE
  23. from .extractor.collegehumor import CollegeHumorIE
  24. from .extractor.dailymotion import DailymotionIE
  25. from .extractor.depositfiles import DepositFilesIE
  26. from .extractor.eighttracks import EightTracksIE
  27. from .extractor.escapist import EscapistIE
  28. from .extractor.facebook import FacebookIE
  29. from .extractor.funnyordie import FunnyOrDieIE
  30. from .extractor.gametrailers import GametrailersIE
  31. from .extractor.generic import GenericIE
  32. from .extractor.googleplus import GooglePlusIE
  33. from .extractor.googlesearch import GoogleSearchIE
  34. from .extractor.infoq import InfoQIE
  35. from .extractor.justintv import JustinTVIE
  36. from .extractor.keek import KeekIE
  37. from .extractor.liveleak import LiveLeakIE
  38. from .extractor.metacafe import MetacafeIE
  39. from .extractor.mixcloud import MixcloudIE
  40. from .extractor.mtv import MTVIE
  41. from .extractor.myspass import MySpassIE
  42. from .extractor.myvideo import MyVideoIE
  43. from .extractor.nba import NBAIE
  44. from .extractor.statigram import StatigramIE
  45. from .extractor.photobucket import PhotobucketIE
  46. from .extractor.pornotube import PornotubeIE
  47. from .extractor.rbmaradio import RBMARadioIE
  48. from .extractor.soundcloud import SoundcloudIE, SoundcloudSetIE
  49. from .extractor.spiegel import SpiegelIE
  50. from .extractor.stanfordoc import StanfordOpenClassroomIE
  51. from .extractor.steam import SteamIE
  52. from .extractor.ted import TEDIE
  53. from .extractor.ustream import UstreamIE
  54. from .extractor.vimeo import VimeoIE
  55. from .extractor.worldstarhiphop import WorldStarHipHopIE
  56. from .extractor.xnxx import XNXXIE
  57. from .extractor.xvideos import XVideosIE
  58. from .extractor.yahoo import YahooIE, YahooSearchIE
  59. from .extractor.youjizz import YouJizzIE
  60. from .extractor.youku import YoukuIE
  61. from .extractor.youporn import YouPornIE
  62. from .extractor.youtube import YoutubeIE, YoutubePlaylistIE, YoutubeSearchIE, YoutubeUserIE, YoutubeChannelIE
  63. from .extractor.zdf import ZDFIE
  64. class TumblrIE(InfoExtractor):
  65. _VALID_URL = r'http://(?P<blog_name>.*?)\.tumblr\.com/((post)|(video))/(?P<id>\d*)/(.*?)'
  66. def _real_extract(self, url):
  67. m_url = re.match(self._VALID_URL, url)
  68. video_id = m_url.group('id')
  69. blog = m_url.group('blog_name')
  70. url = 'http://%s.tumblr.com/post/%s/' % (blog, video_id)
  71. webpage = self._download_webpage(url, video_id)
  72. re_video = r'src=\\x22(?P<video_url>http://%s\.tumblr\.com/video_file/%s/(.*?))\\x22 type=\\x22video/(?P<ext>.*?)\\x22' % (blog, video_id)
  73. video = re.search(re_video, webpage)
  74. if video is None:
  75. raise ExtractorError(u'Unable to extract video')
  76. video_url = video.group('video_url')
  77. ext = video.group('ext')
  78. video_thumbnail = self._search_regex(r'posters(.*?)\[\\x22(?P<thumb>.*?)\\x22',
  79. webpage, u'thumbnail', fatal=False) # We pick the first poster
  80. if video_thumbnail: video_thumbnail = video_thumbnail.replace('\\', '')
  81. # The only place where you can get a title, it's not complete,
  82. # but searching in other places doesn't work for all videos
  83. video_title = self._html_search_regex(r'<title>(?P<title>.*?)</title>',
  84. webpage, u'title', flags=re.DOTALL)
  85. return [{'id': video_id,
  86. 'url': video_url,
  87. 'title': video_title,
  88. 'thumbnail': video_thumbnail,
  89. 'ext': ext
  90. }]
  91. class BandcampIE(InfoExtractor):
  92. _VALID_URL = r'http://.*?\.bandcamp\.com/track/(?P<title>.*)'
  93. def _real_extract(self, url):
  94. mobj = re.match(self._VALID_URL, url)
  95. title = mobj.group('title')
  96. webpage = self._download_webpage(url, title)
  97. # We get the link to the free download page
  98. m_download = re.search(r'freeDownloadPage: "(.*?)"', webpage)
  99. if m_download is None:
  100. raise ExtractorError(u'No free songs found')
  101. download_link = m_download.group(1)
  102. id = re.search(r'var TralbumData = {(.*?)id: (?P<id>\d*?)$',
  103. webpage, re.MULTILINE|re.DOTALL).group('id')
  104. download_webpage = self._download_webpage(download_link, id,
  105. 'Downloading free downloads page')
  106. # We get the dictionary of the track from some javascrip code
  107. info = re.search(r'items: (.*?),$',
  108. download_webpage, re.MULTILINE).group(1)
  109. info = json.loads(info)[0]
  110. # We pick mp3-320 for now, until format selection can be easily implemented.
  111. mp3_info = info[u'downloads'][u'mp3-320']
  112. # If we try to use this url it says the link has expired
  113. initial_url = mp3_info[u'url']
  114. re_url = r'(?P<server>http://(.*?)\.bandcamp\.com)/download/track\?enc=mp3-320&fsig=(?P<fsig>.*?)&id=(?P<id>.*?)&ts=(?P<ts>.*)$'
  115. m_url = re.match(re_url, initial_url)
  116. #We build the url we will use to get the final track url
  117. # This url is build in Bandcamp in the script download_bunde_*.js
  118. request_url = '%s/statdownload/track?enc=mp3-320&fsig=%s&id=%s&ts=%s&.rand=665028774616&.vrs=1' % (m_url.group('server'), m_url.group('fsig'), id, m_url.group('ts'))
  119. final_url_webpage = self._download_webpage(request_url, id, 'Requesting download url')
  120. # If we could correctly generate the .rand field the url would be
  121. #in the "download_url" key
  122. final_url = re.search(r'"retry_url":"(.*?)"', final_url_webpage).group(1)
  123. track_info = {'id':id,
  124. 'title' : info[u'title'],
  125. 'ext' : 'mp3',
  126. 'url' : final_url,
  127. 'thumbnail' : info[u'thumb_url'],
  128. 'uploader' : info[u'artist']
  129. }
  130. return [track_info]
  131. class RedTubeIE(InfoExtractor):
  132. """Information Extractor for redtube"""
  133. _VALID_URL = r'(?:http://)?(?:www\.)?redtube\.com/(?P<id>[0-9]+)'
  134. def _real_extract(self,url):
  135. mobj = re.match(self._VALID_URL, url)
  136. if mobj is None:
  137. raise ExtractorError(u'Invalid URL: %s' % url)
  138. video_id = mobj.group('id')
  139. video_extension = 'mp4'
  140. webpage = self._download_webpage(url, video_id)
  141. self.report_extraction(video_id)
  142. video_url = self._html_search_regex(r'<source src="(.+?)" type="video/mp4">',
  143. webpage, u'video URL')
  144. video_title = self._html_search_regex('<h1 class="videoTitle slidePanelMovable">(.+?)</h1>',
  145. webpage, u'title')
  146. return [{
  147. 'id': video_id,
  148. 'url': video_url,
  149. 'ext': video_extension,
  150. 'title': video_title,
  151. }]
  152. class InaIE(InfoExtractor):
  153. """Information Extractor for Ina.fr"""
  154. _VALID_URL = r'(?:http://)?(?:www\.)?ina\.fr/video/(?P<id>I[0-9]+)/.*'
  155. def _real_extract(self,url):
  156. mobj = re.match(self._VALID_URL, url)
  157. video_id = mobj.group('id')
  158. mrss_url='http://player.ina.fr/notices/%s.mrss' % video_id
  159. video_extension = 'mp4'
  160. webpage = self._download_webpage(mrss_url, video_id)
  161. self.report_extraction(video_id)
  162. video_url = self._html_search_regex(r'<media:player url="(?P<mp4url>http://mp4.ina.fr/[^"]+\.mp4)',
  163. webpage, u'video URL')
  164. video_title = self._search_regex(r'<title><!\[CDATA\[(?P<titre>.*?)]]></title>',
  165. webpage, u'title')
  166. return [{
  167. 'id': video_id,
  168. 'url': video_url,
  169. 'ext': video_extension,
  170. 'title': video_title,
  171. }]
  172. class HowcastIE(InfoExtractor):
  173. """Information Extractor for Howcast.com"""
  174. _VALID_URL = r'(?:https?://)?(?:www\.)?howcast\.com/videos/(?P<id>\d+)'
  175. def _real_extract(self, url):
  176. mobj = re.match(self._VALID_URL, url)
  177. video_id = mobj.group('id')
  178. webpage_url = 'http://www.howcast.com/videos/' + video_id
  179. webpage = self._download_webpage(webpage_url, video_id)
  180. self.report_extraction(video_id)
  181. video_url = self._search_regex(r'\'?file\'?: "(http://mobile-media\.howcast\.com/[0-9]+\.mp4)',
  182. webpage, u'video URL')
  183. video_title = self._html_search_regex(r'<meta content=(?:"([^"]+)"|\'([^\']+)\') property=\'og:title\'',
  184. webpage, u'title')
  185. video_description = self._html_search_regex(r'<meta content=(?:"([^"]+)"|\'([^\']+)\') name=\'description\'',
  186. webpage, u'description', fatal=False)
  187. thumbnail = self._html_search_regex(r'<meta content=\'(.+?)\' property=\'og:image\'',
  188. webpage, u'thumbnail', fatal=False)
  189. return [{
  190. 'id': video_id,
  191. 'url': video_url,
  192. 'ext': 'mp4',
  193. 'title': video_title,
  194. 'description': video_description,
  195. 'thumbnail': thumbnail,
  196. }]
  197. class VineIE(InfoExtractor):
  198. """Information Extractor for Vine.co"""
  199. _VALID_URL = r'(?:https?://)?(?:www\.)?vine\.co/v/(?P<id>\w+)'
  200. def _real_extract(self, url):
  201. mobj = re.match(self._VALID_URL, url)
  202. video_id = mobj.group('id')
  203. webpage_url = 'https://vine.co/v/' + video_id
  204. webpage = self._download_webpage(webpage_url, video_id)
  205. self.report_extraction(video_id)
  206. video_url = self._html_search_regex(r'<meta property="twitter:player:stream" content="(.+?)"',
  207. webpage, u'video URL')
  208. video_title = self._html_search_regex(r'<meta property="og:title" content="(.+?)"',
  209. webpage, u'title')
  210. thumbnail = self._html_search_regex(r'<meta property="og:image" content="(.+?)(\?.*?)?"',
  211. webpage, u'thumbnail', fatal=False)
  212. uploader = self._html_search_regex(r'<div class="user">.*?<h2>(.+?)</h2>',
  213. webpage, u'uploader', fatal=False, flags=re.DOTALL)
  214. return [{
  215. 'id': video_id,
  216. 'url': video_url,
  217. 'ext': 'mp4',
  218. 'title': video_title,
  219. 'thumbnail': thumbnail,
  220. 'uploader': uploader,
  221. }]
  222. class FlickrIE(InfoExtractor):
  223. """Information Extractor for Flickr videos"""
  224. _VALID_URL = r'(?:https?://)?(?:www\.)?flickr\.com/photos/(?P<uploader_id>[\w\-_@]+)/(?P<id>\d+).*'
  225. def _real_extract(self, url):
  226. mobj = re.match(self._VALID_URL, url)
  227. video_id = mobj.group('id')
  228. video_uploader_id = mobj.group('uploader_id')
  229. webpage_url = 'http://www.flickr.com/photos/' + video_uploader_id + '/' + video_id
  230. webpage = self._download_webpage(webpage_url, video_id)
  231. secret = self._search_regex(r"photo_secret: '(\w+)'", webpage, u'secret')
  232. first_url = 'https://secure.flickr.com/apps/video/video_mtl_xml.gne?v=x&photo_id=' + video_id + '&secret=' + secret + '&bitrate=700&target=_self'
  233. first_xml = self._download_webpage(first_url, video_id, 'Downloading first data webpage')
  234. node_id = self._html_search_regex(r'<Item id="id">(\d+-\d+)</Item>',
  235. first_xml, u'node_id')
  236. second_url = 'https://secure.flickr.com/video_playlist.gne?node_id=' + node_id + '&tech=flash&mode=playlist&bitrate=700&secret=' + secret + '&rd=video.yahoo.com&noad=1'
  237. second_xml = self._download_webpage(second_url, video_id, 'Downloading second data webpage')
  238. self.report_extraction(video_id)
  239. mobj = re.search(r'<STREAM APP="(.+?)" FULLPATH="(.+?)"', second_xml)
  240. if mobj is None:
  241. raise ExtractorError(u'Unable to extract video url')
  242. video_url = mobj.group(1) + unescapeHTML(mobj.group(2))
  243. video_title = self._html_search_regex(r'<meta property="og:title" content=(?:"([^"]+)"|\'([^\']+)\')',
  244. webpage, u'video title')
  245. video_description = self._html_search_regex(r'<meta property="og:description" content=(?:"([^"]+)"|\'([^\']+)\')',
  246. webpage, u'description', fatal=False)
  247. thumbnail = self._html_search_regex(r'<meta property="og:image" content=(?:"([^"]+)"|\'([^\']+)\')',
  248. webpage, u'thumbnail', fatal=False)
  249. return [{
  250. 'id': video_id,
  251. 'url': video_url,
  252. 'ext': 'mp4',
  253. 'title': video_title,
  254. 'description': video_description,
  255. 'thumbnail': thumbnail,
  256. 'uploader_id': video_uploader_id,
  257. }]
  258. class TeamcocoIE(InfoExtractor):
  259. _VALID_URL = r'http://teamcoco\.com/video/(?P<url_title>.*)'
  260. def _real_extract(self, url):
  261. mobj = re.match(self._VALID_URL, url)
  262. if mobj is None:
  263. raise ExtractorError(u'Invalid URL: %s' % url)
  264. url_title = mobj.group('url_title')
  265. webpage = self._download_webpage(url, url_title)
  266. video_id = self._html_search_regex(r'<article class="video" data-id="(\d+?)"',
  267. webpage, u'video id')
  268. self.report_extraction(video_id)
  269. video_title = self._html_search_regex(r'<meta property="og:title" content="(.+?)"',
  270. webpage, u'title')
  271. thumbnail = self._html_search_regex(r'<meta property="og:image" content="(.+?)"',
  272. webpage, u'thumbnail', fatal=False)
  273. video_description = self._html_search_regex(r'<meta property="og:description" content="(.*?)"',
  274. webpage, u'description', fatal=False)
  275. data_url = 'http://teamcoco.com/cvp/2.0/%s.xml' % video_id
  276. data = self._download_webpage(data_url, video_id, 'Downloading data webpage')
  277. video_url = self._html_search_regex(r'<file type="high".*?>(.*?)</file>',
  278. data, u'video URL')
  279. return [{
  280. 'id': video_id,
  281. 'url': video_url,
  282. 'ext': 'mp4',
  283. 'title': video_title,
  284. 'thumbnail': thumbnail,
  285. 'description': video_description,
  286. }]
  287. class XHamsterIE(InfoExtractor):
  288. """Information Extractor for xHamster"""
  289. _VALID_URL = r'(?:http://)?(?:www.)?xhamster\.com/movies/(?P<id>[0-9]+)/.*\.html'
  290. def _real_extract(self,url):
  291. mobj = re.match(self._VALID_URL, url)
  292. video_id = mobj.group('id')
  293. mrss_url = 'http://xhamster.com/movies/%s/.html' % video_id
  294. webpage = self._download_webpage(mrss_url, video_id)
  295. mobj = re.search(r'\'srv\': \'(?P<server>[^\']*)\',\s*\'file\': \'(?P<file>[^\']+)\',', webpage)
  296. if mobj is None:
  297. raise ExtractorError(u'Unable to extract media URL')
  298. if len(mobj.group('server')) == 0:
  299. video_url = compat_urllib_parse.unquote(mobj.group('file'))
  300. else:
  301. video_url = mobj.group('server')+'/key='+mobj.group('file')
  302. video_extension = video_url.split('.')[-1]
  303. video_title = self._html_search_regex(r'<title>(?P<title>.+?) - xHamster\.com</title>',
  304. webpage, u'title')
  305. # Can't see the description anywhere in the UI
  306. # video_description = self._html_search_regex(r'<span>Description: </span>(?P<description>[^<]+)',
  307. # webpage, u'description', fatal=False)
  308. # if video_description: video_description = unescapeHTML(video_description)
  309. mobj = re.search(r'hint=\'(?P<upload_date_Y>[0-9]{4})-(?P<upload_date_m>[0-9]{2})-(?P<upload_date_d>[0-9]{2}) [0-9]{2}:[0-9]{2}:[0-9]{2} [A-Z]{3,4}\'', webpage)
  310. if mobj:
  311. video_upload_date = mobj.group('upload_date_Y')+mobj.group('upload_date_m')+mobj.group('upload_date_d')
  312. else:
  313. video_upload_date = None
  314. self._downloader.report_warning(u'Unable to extract upload date')
  315. video_uploader_id = self._html_search_regex(r'<a href=\'/user/[^>]+>(?P<uploader_id>[^<]+)',
  316. webpage, u'uploader id', default=u'anonymous')
  317. video_thumbnail = self._search_regex(r'\'image\':\'(?P<thumbnail>[^\']+)\'',
  318. webpage, u'thumbnail', fatal=False)
  319. return [{
  320. 'id': video_id,
  321. 'url': video_url,
  322. 'ext': video_extension,
  323. 'title': video_title,
  324. # 'description': video_description,
  325. 'upload_date': video_upload_date,
  326. 'uploader_id': video_uploader_id,
  327. 'thumbnail': video_thumbnail
  328. }]
  329. class HypemIE(InfoExtractor):
  330. """Information Extractor for hypem"""
  331. _VALID_URL = r'(?:http://)?(?:www\.)?hypem\.com/track/([^/]+)/([^/]+)'
  332. def _real_extract(self, url):
  333. mobj = re.match(self._VALID_URL, url)
  334. if mobj is None:
  335. raise ExtractorError(u'Invalid URL: %s' % url)
  336. track_id = mobj.group(1)
  337. data = { 'ax': 1, 'ts': time.time() }
  338. data_encoded = compat_urllib_parse.urlencode(data)
  339. complete_url = url + "?" + data_encoded
  340. request = compat_urllib_request.Request(complete_url)
  341. response, urlh = self._download_webpage_handle(request, track_id, u'Downloading webpage with the url')
  342. cookie = urlh.headers.get('Set-Cookie', '')
  343. self.report_extraction(track_id)
  344. html_tracks = self._html_search_regex(r'<script type="application/json" id="displayList-data">(.*?)</script>',
  345. response, u'tracks', flags=re.MULTILINE|re.DOTALL).strip()
  346. try:
  347. track_list = json.loads(html_tracks)
  348. track = track_list[u'tracks'][0]
  349. except ValueError:
  350. raise ExtractorError(u'Hypemachine contained invalid JSON.')
  351. key = track[u"key"]
  352. track_id = track[u"id"]
  353. artist = track[u"artist"]
  354. title = track[u"song"]
  355. serve_url = "http://hypem.com/serve/source/%s/%s" % (compat_str(track_id), compat_str(key))
  356. request = compat_urllib_request.Request(serve_url, "" , {'Content-Type': 'application/json'})
  357. request.add_header('cookie', cookie)
  358. song_data_json = self._download_webpage(request, track_id, u'Downloading metadata')
  359. try:
  360. song_data = json.loads(song_data_json)
  361. except ValueError:
  362. raise ExtractorError(u'Hypemachine contained invalid JSON.')
  363. final_url = song_data[u"url"]
  364. return [{
  365. 'id': track_id,
  366. 'url': final_url,
  367. 'ext': "mp3",
  368. 'title': title,
  369. 'artist': artist,
  370. }]
  371. class Vbox7IE(InfoExtractor):
  372. """Information Extractor for Vbox7"""
  373. _VALID_URL = r'(?:http://)?(?:www\.)?vbox7\.com/play:([^/]+)'
  374. def _real_extract(self,url):
  375. mobj = re.match(self._VALID_URL, url)
  376. if mobj is None:
  377. raise ExtractorError(u'Invalid URL: %s' % url)
  378. video_id = mobj.group(1)
  379. redirect_page, urlh = self._download_webpage_handle(url, video_id)
  380. new_location = self._search_regex(r'window\.location = \'(.*)\';', redirect_page, u'redirect location')
  381. redirect_url = urlh.geturl() + new_location
  382. webpage = self._download_webpage(redirect_url, video_id, u'Downloading redirect page')
  383. title = self._html_search_regex(r'<title>(.*)</title>',
  384. webpage, u'title').split('/')[0].strip()
  385. ext = "flv"
  386. info_url = "http://vbox7.com/play/magare.do"
  387. data = compat_urllib_parse.urlencode({'as3':'1','vid':video_id})
  388. info_request = compat_urllib_request.Request(info_url, data)
  389. info_request.add_header('Content-Type', 'application/x-www-form-urlencoded')
  390. info_response = self._download_webpage(info_request, video_id, u'Downloading info webpage')
  391. if info_response is None:
  392. raise ExtractorError(u'Unable to extract the media url')
  393. (final_url, thumbnail_url) = map(lambda x: x.split('=')[1], info_response.split('&'))
  394. return [{
  395. 'id': video_id,
  396. 'url': final_url,
  397. 'ext': ext,
  398. 'title': title,
  399. 'thumbnail': thumbnail_url,
  400. }]
  401. def gen_extractors():
  402. """ Return a list of an instance of every supported extractor.
  403. The order does matter; the first extractor matched is the one handling the URL.
  404. """
  405. return [
  406. YoutubePlaylistIE(),
  407. YoutubeChannelIE(),
  408. YoutubeUserIE(),
  409. YoutubeSearchIE(),
  410. YoutubeIE(),
  411. MetacafeIE(),
  412. DailymotionIE(),
  413. GoogleSearchIE(),
  414. PhotobucketIE(),
  415. YahooIE(),
  416. YahooSearchIE(),
  417. DepositFilesIE(),
  418. FacebookIE(),
  419. BlipTVIE(),
  420. BlipTVUserIE(),
  421. VimeoIE(),
  422. MyVideoIE(),
  423. ComedyCentralIE(),
  424. EscapistIE(),
  425. CollegeHumorIE(),
  426. XVideosIE(),
  427. SoundcloudSetIE(),
  428. SoundcloudIE(),
  429. InfoQIE(),
  430. MixcloudIE(),
  431. StanfordOpenClassroomIE(),
  432. MTVIE(),
  433. YoukuIE(),
  434. XNXXIE(),
  435. YouJizzIE(),
  436. PornotubeIE(),
  437. YouPornIE(),
  438. GooglePlusIE(),
  439. ArteTvIE(),
  440. NBAIE(),
  441. WorldStarHipHopIE(),
  442. JustinTVIE(),
  443. FunnyOrDieIE(),
  444. SteamIE(),
  445. UstreamIE(),
  446. RBMARadioIE(),
  447. EightTracksIE(),
  448. KeekIE(),
  449. TEDIE(),
  450. MySpassIE(),
  451. SpiegelIE(),
  452. LiveLeakIE(),
  453. ARDIE(),
  454. ZDFIE(),
  455. TumblrIE(),
  456. BandcampIE(),
  457. RedTubeIE(),
  458. InaIE(),
  459. HowcastIE(),
  460. VineIE(),
  461. FlickrIE(),
  462. TeamcocoIE(),
  463. XHamsterIE(),
  464. HypemIE(),
  465. Vbox7IE(),
  466. GametrailersIE(),
  467. StatigramIE(),
  468. GenericIE()
  469. ]
  470. def get_info_extractor(ie_name):
  471. """Returns the info extractor class with the given ie_name"""
  472. return globals()[ie_name+'IE']