]>
jfr.im git - yt-dlp.git/blob - youtube_dl/extractor/ebaumsworld.py
1 from __future__
import unicode_literals
5 from .common
import InfoExtractor
6 from ..utils
import determine_ext
9 class EbaumsWorldIE(InfoExtractor
):
10 _VALID_URL
= r
'https?://www\.ebaumsworld\.com/video/watch/(?P<id>\d+)'
13 'url': 'http://www.ebaumsworld.com/video/watch/83367677/',
17 'title': 'A Giant Python Opens The Door',
18 'description': 'This is how nightmares start...',
19 'uploader': 'jihadpizza',
23 def _real_extract(self
, url
):
24 mobj
= re
.match(self
._VALID
_URL
, url
)
25 video_id
= mobj
.group('id')
26 config
= self
._download
_xml
(
27 'http://www.ebaumsworld.com/video/player/%s' % video_id
, video_id
)
28 video_url
= config
.find('file').text
32 'title': config
.find('title').text
,
34 'ext': determine_ext(video_url
),
35 'description': config
.find('description').text
,
36 'thumbnail': config
.find('image').text
,
37 'uploader': config
.find('username').text
,