lxml is not part of the standard library.
[youtube-dl] / youtube_dl / extractor / __init__.py
1 from .archiveorg import ArchiveOrgIE
2 from .ard import ARDIE
3 from .arte import ArteTvIE
4 from .auengine import AUEngineIE
5 from .bandcamp import BandcampIE
6 from .bliptv import BlipTVIE, BlipTVUserIE
7 from .breakcom import BreakIE
8 from .brightcove import BrightcoveIE
9 from .canalplus import CanalplusIE
10 from .canalc2 import Canalc2IE
11 from .collegehumor import CollegeHumorIE
12 from .comedycentral import ComedyCentralIE
13 from .condenast import CondeNastIE
14 from .criterion import CriterionIE
15 from .cspan import CSpanIE
16 from .dailymotion import DailymotionIE, DailymotionPlaylistIE
17 from .depositfiles import DepositFilesIE
18 from .dotsub import DotsubIE
19 from .dreisat import DreiSatIE
20 from .ehow import EHowIE
21 from .eighttracks import EightTracksIE
22 from .escapist import EscapistIE
23 from .exfm import ExfmIE
24 from .facebook import FacebookIE
25 from .flickr import FlickrIE
26 from .freesound import FreesoundIE
27 from .funnyordie import FunnyOrDieIE
28 from .gamespot import GameSpotIE
29 from .gametrailers import GametrailersIE
30 from .generic import GenericIE
31 from .googleplus import GooglePlusIE
32 from .googlesearch import GoogleSearchIE
33 from .hotnewhiphop import HotNewHipHopIE
34 from .howcast import HowcastIE
35 from .hypem import HypemIE
36 from .ign import IGNIE, OneUPIE
37 from .ina import InaIE
38 from .infoq import InfoQIE
39 from .instagram import InstagramIE
40 from .jeuxvideo import JeuxVideoIE
41 from .jukebox import JukeboxIE
42 from .justintv import JustinTVIE
43 from .kankan import KankanIE
44 from .keek import KeekIE
45 from .liveleak import LiveLeakIE
46 from .livestream import LivestreamIE
47 from .metacafe import MetacafeIE
48 from .mixcloud import MixcloudIE
49 from .mtv import MTVIE
50 from .muzu import MuzuTVIE
51 from .myspass import MySpassIE
52 from .myvideo import MyVideoIE
53 from .nba import NBAIE
54 from .ooyala import OoyalaIE
55 from .pbs import PBSIE
56 from .photobucket import PhotobucketIE
57 from .pornotube import PornotubeIE
58 from .rbmaradio import RBMARadioIE
59 from .redtube import RedTubeIE
60 from .ringtv import RingTVIE
61 from .roxwel import RoxwelIE
62 from .rtlnow import RTLnowIE
63 from .sina import SinaIE
64 from .slashdot import SlashdotIE
65 from .soundcloud import SoundcloudIE, SoundcloudSetIE
66 from .spiegel import SpiegelIE
67 from .stanfordoc import StanfordOpenClassroomIE
68 from .statigram import StatigramIE
69 from .steam import SteamIE
70 from .teamcoco import TeamcocoIE
71 from .ted import TEDIE
72 from .tf1 import TF1IE
73 from .thisav import ThisAVIE
74 from .traileraddict import TrailerAddictIE
75 from .tudou import TudouIE
76 from .tumblr import TumblrIE
77 from .tutv import TutvIE
78 from .ustream import UstreamIE
79 from .vbox7 import Vbox7IE
80 from .veoh import VeohIE
81 from .vevo import VevoIE
82 from .videofyme import VideofyMeIE
83 from .vimeo import VimeoIE, VimeoChannelIE
84 from .vine import VineIE
85 from .c56 import C56IE
86 from .wat import WatIE
87 from .weibo import WeiboIE
88 from .wimp import WimpIE
89 from .worldstarhiphop import WorldStarHipHopIE
90 from .xhamster import XHamsterIE
91 from .xnxx import XNXXIE
92 from .xvideos import XVideosIE
93 from .yahoo import YahooIE, YahooSearchIE
94 from .youjizz import YouJizzIE
95 from .youku import YoukuIE
96 from .youporn import YouPornIE
97 from .youtube import (
98     YoutubeIE,
99     YoutubePlaylistIE,
100     YoutubeSearchIE,
101     YoutubeUserIE,
102     YoutubeChannelIE,
103     YoutubeShowIE,
104     YoutubeSubscriptionsIE,
105     YoutubeRecommendedIE,
106     YoutubeWatchLaterIE,
107     YoutubeFavouritesIE,
108 )
109 from .zdf import ZDFIE
110
111
112 _ALL_CLASSES = [
113     klass
114     for name, klass in globals().items()
115     if name.endswith('IE') and name != 'GenericIE'
116 ]
117 _ALL_CLASSES.append(GenericIE)
118
119 def gen_extractors():
120     """ Return a list of an instance of every supported extractor.
121     The order does matter; the first extractor matched is the one handling the URL.
122     """
123     return [klass() for klass in _ALL_CLASSES]
124
125 def get_info_extractor(ie_name):
126     """Returns the info extractor class with the given ie_name"""
127     return globals()[ie_name+'IE']