From 16a2888b1a561c3d0eb17b49054df2c3e4c0e8ba Mon Sep 17 00:00:00 2001 From: DarkFighterLuke Date: Sat, 26 Feb 2022 14:55:53 +0100 Subject: [PATCH] Scrape actors modified: youtube_dl/extractor/xvideos.py --- youtube_dl/extractor/xvideos.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/youtube_dl/extractor/xvideos.py b/youtube_dl/extractor/xvideos.py index 214cbb97c..ed7c216ac 100644 --- a/youtube_dl/extractor/xvideos.py +++ b/youtube_dl/extractor/xvideos.py @@ -36,6 +36,7 @@ class XVideosIE(InfoExtractor): 'age_limit': 18, 'tags': ['lesbian', 'teen', 'hardcore', 'latina', 'rough', 'squirt', 'big-ass', 'cheater', 'twistys', 'cheat', 'ass-play', 'when-girls-play'], 'creator': 'Twistys', + 'actors': [{'given_name': 'Adriana Chechik', 'url': 'https://www.xvideos.com/pornstars/adriana-chechik'}, {'given_name': 'Abella Danger', 'url': 'https://www.xvideos.com/pornstars/abella-danger'}], } }, { 'url': 'https://flashservice.xvideos.com/embedframe/4588838', @@ -144,6 +145,14 @@ class XVideosIE(InfoExtractor): creator = self._search_regex(r'(?P.+?)<', webpage, 'creator', group='creator') + actors_data = re.findall(r'href="(?P/pornstars/.+?)" class="btn btn-default label profile hover-name">(?P.+?)', webpage) + actors = [] + for actor_tuple in actors_data: + actors.append({ + 'given_name': actor_tuple[1], + 'url': urljoin(url, actor_tuple[0]), + }) + return { 'id': video_id, 'formats': formats, @@ -153,4 +162,5 @@ class XVideosIE(InfoExtractor): 'age_limit': 18, 'tags': tags, 'creator': creator, + 'actors': actors, }