]>
jfr.im git - yt-dlp.git/blob - youtube_dl/extractor/eroprofile.py
1 from __future__
import unicode_literals
5 from .common
import InfoExtractor
7 class EroProfileIE(InfoExtractor
):
8 _VALID_URL
= r
'https?://(?:www\.)?eroprofile\.com/m/videos/view/(?P<display_id>[^/]+)'
10 'url': 'http://www.eroprofile.com/m/videos/view/sexy-babe-softcore',
11 'md5': 'c26f351332edf23e1ea28ce9ec9de32f',
15 'title': 'HD MOVIES - sexy babe softcore',
16 'description': 'md5:831ee50526c333eb4f6c1e58d382c295',
17 'categories': list, # NSFW
18 'thumbnail': 're:https?://.*\.jpg',
23 def _real_extract(self
, url
):
24 webpage
= self
._download
_webpage
(url
, 'main')
26 video_id
= self
._html
_search
_regex
(r
'glbUpdViews\s*\(\'\d
*\',\'(\d
+)\'', webpage, 'id')
28 video_url = self._html_search_regex(r'<source src
="([^"]+)', webpage, 'video_url
')
30 title = self._html_search_regex(
31 r'<title
>([^
<]+)\s
*-\s
*EroProfile
</title
>', webpage, 'title
')
33 description = self._html_search_meta('description
', webpage, 'description
', fatal=False)
35 thumbnail = self._html_search_regex(
36 r'onclick
="showVideoPlayer\(\)"><img src
="([^"]+)', webpage, 'thumbnail
', fatal=False)
38 categories_str = self._html_search_meta(
39 'keywords
', webpage, 'categories
', fatal=False)
41 None if categories_str is None
42 else categories_str.split(','))
49 'description
': description,
50 'thumbnail
': thumbnail,
51 'categories
': categories,