]>
Raphaƫl G. Git Repositories - youtubedl/blob - youtube_dl/extractor/ebaumsworld.py
1 from __future__
import unicode_literals
3 from .common
import InfoExtractor
6 class EbaumsWorldIE(InfoExtractor
):
7 _VALID_URL
= r
'https?://www\.ebaumsworld\.com/video/watch/(?P<id>\d+)'
10 'url': 'http://www.ebaumsworld.com/video/watch/83367677/',
14 'title': 'A Giant Python Opens The Door',
15 'description': 'This is how nightmares start...',
16 'uploader': 'jihadpizza',
20 def _real_extract(self
, url
):
21 video_id
= self
._match
_id
(url
)
22 config
= self
._download
_xml
(
23 'http://www.ebaumsworld.com/video/player/%s' % video_id
, video_id
)
24 video_url
= config
.find('file').text
28 'title': config
.find('title').text
,
30 'description': config
.find('description').text
,
31 'thumbnail': config
.find('image').text
,
32 'uploader': config
.find('username').text
,