]>
Raphaël G. Git Repositories - youtubedl/blob - youtube_dl/extractor/xnxx.py
2 from __future__
import unicode_literals
6 from .common
import InfoExtractor
12 class XNXXIE(InfoExtractor
):
13 _VALID_URL
= r
'^https?://(?:video|www)\.xnxx\.com/video(?P<id>[0-9]+)/(.*)'
15 'url': 'http://video.xnxx.com/video1135332/lida_naked_funny_actress_5_',
16 'md5': '0831677e2b4761795f68d417e0b7b445',
20 'title': 'lida » Naked Funny Actress (5)',
25 def _real_extract(self
, url
):
26 mobj
= re
.match(self
._VALID
_URL
, url
)
27 video_id
= mobj
.group('id')
30 webpage
= self
._download
_webpage
(url
, video_id
)
32 video_url
= self
._search
_regex
(r
'flv_url=(.*?)&',
34 video_url
= compat_urllib_parse
.unquote(video_url
)
36 video_title
= self
._html
_search
_regex
(r
'<title>(.*?)\s+-\s+XNXX.COM',
39 video_thumbnail
= self
._search
_regex
(r
'url_bigthumb=(.*?)&',
40 webpage
, 'thumbnail', fatal
=False)
47 'thumbnail': video_thumbnail
,