]>
Raphaël G. Git Repositories - youtubedl/blob - youtube_dl/extractor/xnxx.py
2 from __future__
import unicode_literals
4 from .common
import InfoExtractor
10 class XNXXIE(InfoExtractor
):
11 _VALID_URL
= r
'^https?://(?:video|www)\.xnxx\.com/video(?P<id>[0-9]+)/(.*)'
13 'url': 'http://video.xnxx.com/video1135332/lida_naked_funny_actress_5_',
14 'md5': '0831677e2b4761795f68d417e0b7b445',
18 'title': 'lida » Naked Funny Actress (5)',
23 def _real_extract(self
, url
):
24 video_id
= self
._match
_id
(url
)
25 webpage
= self
._download
_webpage
(url
, video_id
)
27 video_url
= self
._search
_regex
(r
'flv_url=(.*?)&',
29 video_url
= compat_urllib_parse
.unquote(video_url
)
31 video_title
= self
._html
_search
_regex
(r
'<title>(.*?)\s+-\s+XNXX.COM',
34 video_thumbnail
= self
._search
_regex
(r
'url_bigthumb=(.*?)&',
35 webpage
, 'thumbnail', fatal
=False)
42 'thumbnail': video_thumbnail
,