mirror of
https://github.com/ytdl-org/youtube-dl
synced 2025-04-14 19:14:51 +09:00
Scrape tags
modified: youtube_dl/extractor/sxyprn.py
This commit is contained in:
parent
2ffd1b4747
commit
a6610f8581
@ -20,6 +20,7 @@ class SxyPrnIE(InfoExtractor):
|
|||||||
'thumbnail': r're:^https?://.*\.jpg$',
|
'thumbnail': r're:^https?://.*\.jpg$',
|
||||||
'duration': 165,
|
'duration': 165,
|
||||||
'age_limit': 18,
|
'age_limit': 18,
|
||||||
|
'tags': ['porn', 'gratis porno', 'anal', 'free porn videos', 'videos', 'movies'],
|
||||||
},
|
},
|
||||||
'params': {
|
'params': {
|
||||||
'skip_download': True,
|
'skip_download': True,
|
||||||
@ -56,6 +57,8 @@ class SxyPrnIE(InfoExtractor):
|
|||||||
r'duration\s*:\s*<[^>]+>([\d:]+)', webpage, 'duration',
|
r'duration\s*:\s*<[^>]+>([\d:]+)', webpage, 'duration',
|
||||||
default=None))
|
default=None))
|
||||||
|
|
||||||
|
tags = self._search_regex(r'<meta name="keywords".+content="(?P<tags>.+)"', webpage, 'tags', group='tags').split(', ')
|
||||||
|
|
||||||
return {
|
return {
|
||||||
'id': video_id,
|
'id': video_id,
|
||||||
'url': video_url,
|
'url': video_url,
|
||||||
@ -64,4 +67,5 @@ class SxyPrnIE(InfoExtractor):
|
|||||||
'duration': duration,
|
'duration': duration,
|
||||||
'age_limit': 18,
|
'age_limit': 18,
|
||||||
'ext': 'mp4',
|
'ext': 'mp4',
|
||||||
|
'tags': tags,
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user