]>
jfr.im git - yt-dlp.git/blob - yt_dlp/extractor/peekvids.py
2 from __future__
import unicode_literals
4 from .common
import InfoExtractor
7 class PeekVidsIE(InfoExtractor
):
9 https?://(?:www\.)?peekvids\.com/
10 (?:(?:[^/?#]+/){2}|embed/?\?(?:[^#]*&)?v=)
14 'url': 'https://peekvids.com/pc/dane-jones-cute-redhead-with-perfect-tits-with-mini-vamp/BSyLMbN0YCd',
15 'md5': 'a00940646c428e232407e3e62f0e8ef5',
18 'title': ' Dane Jones - Cute redhead with perfect tits with Mini Vamp, SEXYhub',
20 'thumbnail': r
're:^https?://.*\.jpg$',
21 'description': 'Watch Dane Jones - Cute redhead with perfect tits with Mini Vamp (7 min), uploaded by SEXYhub.com',
22 'timestamp': 1642579329,
23 'upload_date': '20220119',
29 _DOMAIN
= 'www.peekvids.com'
31 def _real_extract(self
, url
):
32 video_id
= self
._match
_id
(url
)
33 webpage
= self
._download
_webpage
(url
, video_id
)
35 short_video_id
= self
._html
_search
_regex
(r
'<video [^>]*data-id="(.+?)"', webpage
, 'short video ID')
36 srcs
= self
._download
_json
(
37 f
'https://{self._DOMAIN}/v-alt/{short_video_id}', video_id
,
38 note
='Downloading list of source files')
42 'format_id': name
[8:],
43 } for name
, url
in srcs
.items() if len(name
) > 8 and name
.startswith('data-src')]
45 formats
= [{'url': url}
for url
in srcs
.values()]
46 self
._sort
_formats
(formats
)
48 info
= self
._search
_json
_ld
(webpage
, video_id
, expected_type
='VideoObject')
57 class PlayVidsIE(PeekVidsIE
):
58 _VALID_URL
= r
'https?://(?:www\.)?playvids\.com/(?:embed/|[^/]{2}/)?(?P<id>[^/?#]*)'
60 'url': 'https://www.playvids.com/U3pBrYhsjXM/pc/dane-jones-cute-redhead-with-perfect-tits-with-mini-vamp',
61 'md5': 'cd7dfd8a2e815a45402369c76e3c1825',
64 'title': ' Dane Jones - Cute redhead with perfect tits with Mini Vamp, SEXYhub',
66 'thumbnail': r
're:^https?://.*\.jpg$',
67 'description': 'Watch Dane Jones - Cute redhead with perfect tits with Mini Vamp video in HD, uploaded by SEXYhub.com',
68 'timestamp': 1640435839,
69 'upload_date': '20211225',
75 'url': 'https://www.playvids.com/es/U3pBrYhsjXM/pc/dane-jones-cute-redhead-with-perfect-tits-with-mini-vamp',
76 'only_matching': True,
78 'url': 'https://www.playvids.com/embed/U3pBrYhsjXM',
79 'only_matching': True,
81 _DOMAIN
= 'www.playvids.com'