__init__.py 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  1. from .appletrailers import AppleTrailersIE
  2. from .addanime import AddAnimeIE
  3. from .archiveorg import ArchiveOrgIE
  4. from .ard import ARDIE
  5. from .arte import ArteTvIE
  6. from .auengine import AUEngineIE
  7. from .bandcamp import BandcampIE
  8. from .bliptv import BlipTVIE, BlipTVUserIE
  9. from .bloomberg import BloombergIE
  10. from .breakcom import BreakIE
  11. from .brightcove import BrightcoveIE
  12. from .c56 import C56IE
  13. from .canalplus import CanalplusIE
  14. from .canalc2 import Canalc2IE
  15. from .cinemassacre import CinemassacreIE
  16. from .cnn import CNNIE
  17. from .collegehumor import CollegeHumorIE
  18. from .comedycentral import ComedyCentralIE
  19. from .condenast import CondeNastIE
  20. from .criterion import CriterionIE
  21. from .cspan import CSpanIE
  22. from .dailymotion import (
  23. DailymotionIE,
  24. DailymotionPlaylistIE,
  25. DailymotionUserIE,
  26. )
  27. from .daum import DaumIE
  28. from .depositfiles import DepositFilesIE
  29. from .dotsub import DotsubIE
  30. from .dreisat import DreiSatIE
  31. from .defense import DefenseGouvFrIE
  32. from .ebaumsworld import EbaumsWorldIE
  33. from .ehow import EHowIE
  34. from .eighttracks import EightTracksIE
  35. from .escapist import EscapistIE
  36. from .exfm import ExfmIE
  37. from .facebook import FacebookIE
  38. from .faz import FazIE
  39. from .fktv import (
  40. FKTVIE,
  41. FKTVPosteckeIE,
  42. )
  43. from .flickr import FlickrIE
  44. from .francetv import (
  45. PluzzIE,
  46. FranceTvInfoIE,
  47. France2IE,
  48. GenerationQuoiIE
  49. )
  50. from .freesound import FreesoundIE
  51. from .funnyordie import FunnyOrDieIE
  52. from .gamespot import GameSpotIE
  53. from .gametrailers import GametrailersIE
  54. from .generic import GenericIE
  55. from .googleplus import GooglePlusIE
  56. from .googlesearch import GoogleSearchIE
  57. from .hark import HarkIE
  58. from .hotnewhiphop import HotNewHipHopIE
  59. from .howcast import HowcastIE
  60. from .hypem import HypemIE
  61. from .ign import IGNIE, OneUPIE
  62. from .ina import InaIE
  63. from .infoq import InfoQIE
  64. from .instagram import InstagramIE
  65. from .jeuxvideo import JeuxVideoIE
  66. from .jukebox import JukeboxIE
  67. from .justintv import JustinTVIE
  68. from .kankan import KankanIE
  69. from .kickstarter import KickStarterIE
  70. from .keek import KeekIE
  71. from .liveleak import LiveLeakIE
  72. from .livestream import LivestreamIE
  73. from .metacafe import MetacafeIE
  74. from .metacritic import MetacriticIE
  75. from .mit import TechTVMITIE, MITIE
  76. from .mixcloud import MixcloudIE
  77. from .mtv import MTVIE
  78. from .muzu import MuzuTVIE
  79. from .myspass import MySpassIE
  80. from .myvideo import MyVideoIE
  81. from .naver import NaverIE
  82. from .nba import NBAIE
  83. from .nbc import NBCNewsIE
  84. from .newgrounds import NewgroundsIE
  85. from .nhl import NHLIE, NHLVideocenterIE
  86. from .nowvideo import NowVideoIE
  87. from .ooyala import OoyalaIE
  88. from .orf import ORFIE
  89. from .pbs import PBSIE
  90. from .photobucket import PhotobucketIE
  91. from .pornotube import PornotubeIE
  92. from .rbmaradio import RBMARadioIE
  93. from .redtube import RedTubeIE
  94. from .ringtv import RingTVIE
  95. from .ro220 import Ro220IE
  96. from .roxwel import RoxwelIE
  97. from .rtlnow import RTLnowIE
  98. from .sina import SinaIE
  99. from .slashdot import SlashdotIE
  100. from .slideshare import SlideshareIE
  101. from .sohu import SohuIE
  102. from .soundcloud import SoundcloudIE, SoundcloudSetIE, SoundcloudUserIE
  103. from .southparkstudios import SouthParkStudiosIE
  104. from .spiegel import SpiegelIE
  105. from .stanfordoc import StanfordOpenClassroomIE
  106. from .statigram import StatigramIE
  107. from .steam import SteamIE
  108. from .teamcoco import TeamcocoIE
  109. from .ted import TEDIE
  110. from .tf1 import TF1IE
  111. from .thisav import ThisAVIE
  112. from .traileraddict import TrailerAddictIE
  113. from .trilulilu import TriluliluIE
  114. from .tudou import TudouIE
  115. from .tumblr import TumblrIE
  116. from .tutv import TutvIE
  117. from .unistra import UnistraIE
  118. from .ustream import UstreamIE, UstreamChannelIE
  119. from .vbox7 import Vbox7IE
  120. from .veehd import VeeHDIE
  121. from .veoh import VeohIE
  122. from .vevo import VevoIE
  123. from .vice import ViceIE
  124. from .viddler import ViddlerIE
  125. from .videofyme import VideofyMeIE
  126. from .vimeo import VimeoIE, VimeoChannelIE
  127. from .vine import VineIE
  128. from .wat import WatIE
  129. from .weibo import WeiboIE
  130. from .wimp import WimpIE
  131. from .worldstarhiphop import WorldStarHipHopIE
  132. from .xhamster import XHamsterIE
  133. from .xnxx import XNXXIE
  134. from .xvideos import XVideosIE
  135. from .yahoo import YahooIE, YahooSearchIE
  136. from .youjizz import YouJizzIE
  137. from .youku import YoukuIE
  138. from .youporn import YouPornIE
  139. from .youtube import (
  140. YoutubeIE,
  141. YoutubePlaylistIE,
  142. YoutubeSearchIE,
  143. YoutubeUserIE,
  144. YoutubeChannelIE,
  145. YoutubeShowIE,
  146. YoutubeSubscriptionsIE,
  147. YoutubeRecommendedIE,
  148. YoutubeTruncatedURLIE,
  149. YoutubeWatchLaterIE,
  150. YoutubeFavouritesIE,
  151. )
  152. from .zdf import ZDFIE
  153. _ALL_CLASSES = [
  154. klass
  155. for name, klass in globals().items()
  156. if name.endswith('IE') and name != 'GenericIE'
  157. ]
  158. _ALL_CLASSES.append(GenericIE)
  159. def gen_extractors():
  160. """ Return a list of an instance of every supported extractor.
  161. The order does matter; the first extractor matched is the one handling the URL.
  162. """
  163. return [klass() for klass in _ALL_CLASSES]
  164. def get_info_extractor(ie_name):
  165. """Returns the info extractor class with the given ie_name"""
  166. return globals()[ie_name+'IE']