]>
Raphaƫl G. Git Repositories - youtubedl/blob - youtube_dl/extractor/slutload.py
7efb29f653b76b25c26d91aac16c6985255ee1d0
1 from __future__
import unicode_literals
5 from .common
import InfoExtractor
8 class SlutloadIE(InfoExtractor
):
9 _VALID_URL
= r
'^https?://(?:\w+\.)?slutload\.com/video/[^/]+/(?P<id>[^/]+)/?$'
11 'url': 'http://www.slutload.com/video/virginie-baisee-en-cam/TD73btpBqSxc/',
12 'md5': '0cf531ae8006b530bd9df947a6a0df77',
16 'title': 'virginie baisee en cam',
18 'thumbnail': 're:https?://.*?\.jpg'
22 def _real_extract(self
, url
):
23 mobj
= re
.match(self
._VALID
_URL
, url
)
24 video_id
= mobj
.group('id')
26 webpage
= self
._download
_webpage
(url
, video_id
)
28 video_title
= self
._html
_search
_regex
(r
'<h1><strong>([^<]+)</strong>',
29 webpage
, 'title').strip()
31 video_url
= self
._html
_search
_regex
(
32 r
'(?s)<div id="vidPlayer"\s+data-url="([^"]+)"',
34 thumbnail
= self
._html
_search
_regex
(
35 r
'(?s)<div id="vidPlayer"\s+.*?previewer-file="([^"]+)"',
36 webpage
, 'thumbnail', fatal
=False)
42 'thumbnail': thumbnail
,