1 from .common
import InfoExtractor
2 from .youtube
import YoutubeIE
5 class FreespeechIE(InfoExtractor
):
6 IE_NAME
= 'freespeech.org'
7 _VALID_URL
= r
'https?://(?:www\.)?freespeech\.org/stories/(?P<id>.+)'
10 'url': 'http://www.freespeech.org/stories/fcc-announces-net-neutrality-rollback-whats-stake/',
14 'title': 'What\'s At Stake - Net Neutrality Special',
15 'description': 'Presented by MNN and FSTV',
16 'upload_date': '20170728',
17 'uploader_id': 'freespeechtv',
18 'uploader': 'freespeechtv',
22 def _real_extract(self
, url
):
23 display_id
= self
._match
_id
(url
)
24 webpage
= self
._download
_webpage
(url
, display_id
)
25 youtube_url
= self
._search
_regex
(
26 r
'data-video-url="([^"]+)"',
27 webpage
, 'youtube url')
29 return self
.url_result(youtube_url
, YoutubeIE
.ie_key())