]>
Raphaƫl G. Git Repositories - youtubedl/blob - youtube_dl/extractor/eroprofile.py
79e2fbd394681283e07a7146bc51f39a7499324d
1 from __future__
import unicode_literals
3 from .common
import InfoExtractor
6 class EroProfileIE(InfoExtractor
):
7 _VALID_URL
= r
'https?://(?:www\.)?eroprofile\.com/m/videos/view/(?P<id>[^/]+)'
9 'url': 'http://www.eroprofile.com/m/videos/view/sexy-babe-softcore',
10 'md5': 'c26f351332edf23e1ea28ce9ec9de32f',
13 'display_id': 'sexy-babe-softcore',
15 'title': 'sexy babe softcore',
16 'thumbnail': 're:https?://.*\.jpg',
21 def _real_extract(self
, url
):
22 display_id
= self
._match
_id
(url
)
24 webpage
= self
._download
_webpage
(url
, display_id
)
26 video_id
= self
._search
_regex
(
27 [r
"glbUpdViews\s*\('\d*','(\d+)'", r
'p/report/video/(\d+)'],
28 webpage
, 'video id', default
=None)
30 video_url
= self
._search
_regex
(
31 r
'<source src="([^"]+)', webpage
, 'video url')
32 title
= self
._html
_search
_regex
(
33 r
'Title:</th><td>([^<]+)</td>', webpage
, 'title')
34 thumbnail
= self
._search
_regex
(
35 r
'onclick="showVideoPlayer\(\)"><img src="([^"]+)',
36 webpage
, 'thumbnail', fatal
=False)
40 'display_id': display_id
,
43 'thumbnail': thumbnail
,