[adultempire] bypass age confirmation check

set 'ageConfirmed' cookie
This commit is contained in:
Mike Fährmann
2025-01-26 11:23:13 +01:00
parent acaae40254
commit d9f59ec56e

View File

@@ -24,6 +24,9 @@ class AdultempireGalleryExtractor(GalleryExtractor):
GalleryExtractor.__init__(self, match)
self.gallery_id = match.group(2)
def _init(self):
self.cookies.set("ageConfirmed", "true", domain="www.adultempire.com")
def metadata(self, page):
extr = text.extract_from(page, page.index('<div id="content">'))
return {