]>
Raphaƫl G. Git Repositories - youtubedl/blob - youtube_dl/extractor/teachingchannel.py
117afa9bf498eb063f325504c2301a3eb7ff0d56
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',
22 'skip_download': True,
26 def _real_extract(self
, url
):
27 mobj
= re
.match(self
._VALID
_URL
, url
)
28 title
= mobj
.group('title')
29 webpage
= self
._download
_webpage
(url
, title
)
30 ooyala_code
= self
._search
_regex
(
31 r
'data-embed-code=\'(.+?
)\'', webpage, 'ooyala code
')
33 return OoyalaIE._build_url_result(ooyala_code)