]>
Raphaƫl G. Git Repositories - youtubedl/blob - youtube_dl/extractor/ebaumsworld.py
63c2549d37aa528cc79f83822c7a267d391b74cc
1 from __future__
import unicode_literals
5 from .common
import InfoExtractor
8 class EbaumsWorldIE(InfoExtractor
):
9 _VALID_URL
= r
'https?://www\.ebaumsworld\.com/video/watch/(?P<id>\d+)'
12 'url': 'http://www.ebaumsworld.com/video/watch/83367677/',
16 'title': 'A Giant Python Opens The Door',
17 'description': 'This is how nightmares start...',
18 'uploader': 'jihadpizza',
22 def _real_extract(self
, url
):
23 mobj
= re
.match(self
._VALID
_URL
, url
)
24 video_id
= mobj
.group('id')
25 config
= self
._download
_xml
(
26 'http://www.ebaumsworld.com/video/player/%s' % video_id
, video_id
)
27 video_url
= config
.find('file').text
31 'title': config
.find('title').text
,
33 'description': config
.find('description').text
,
34 'thumbnail': config
.find('image').text
,
35 'uploader': config
.find('username').text
,