]>
Raphaƫl G. Git Repositories - youtubedl/blob - youtube_dl/extractor/freespeech.py
486a49c05271c37280b059fb3a6c6bb4fd0de3ed
1 from __future__
import unicode_literals
3 from .common
import InfoExtractor
6 class FreespeechIE(InfoExtractor
):
7 IE_NAME
= 'freespeech.org'
8 _VALID_URL
= r
'https?://(?:www\.)?freespeech\.org/stories/(?P<id>.+)'
10 'add_ie': ['Youtube'],
11 'url': 'http://www.freespeech.org/stories/fcc-announces-net-neutrality-rollback-whats-stake/',
15 'title': 'What\'s At Stake - Net Neutrality Special',
16 'description': 'Presented by MNN and FSTV',
17 'upload_date': '20170728',
18 'uploader_id': 'freespeechtv',
19 'uploader': 'freespeechtv',
23 def _real_extract(self
, url
):
24 display_id
= self
._match
_id
(url
)
25 webpage
= self
._download
_webpage
(url
, display_id
)
26 youtube_url
= self
._search
_regex
(
27 r
'data-video-url="([^"]+)"',
28 webpage
, 'youtube url')