]>
Raphaƫl G. Git Repositories - youtubedl/blob - youtube_dl/extractor/teachingchannel.py
e0477382ceabea0769bd0575ceb1f350ce8c0911
1 from __future__
import unicode_literals
5 from .common
import InfoExtractor
6 from .ooyala
import OoyalaIE
9 class TeachingChannelIE(InfoExtractor
):
10 _VALID_URL
= r
'https?://www\.teachingchannel\.org/videos/(?P<title>.+)'
13 'url': 'https://www.teachingchannel.org/videos/teacher-teaming-evolution',
15 'id': 'F3bnlzbToeI6pLEfRyrlfooIILUjz4nM',
17 'title': 'A History of Teaming',
18 'description': 'md5:2a9033db8da81f2edffa4c99888140b3',
23 'skip_download': True,
27 def _real_extract(self
, url
):
28 mobj
= re
.match(self
._VALID
_URL
, url
)
29 title
= mobj
.group('title')
30 webpage
= self
._download
_webpage
(url
, title
)
31 ooyala_code
= self
._search
_regex
(
32 r
'data-embed-code=\'(.+?
)\'', webpage, 'ooyala code
')
34 return OoyalaIE._build_url_result(ooyala_code)