[adultempire] bypass age confirmation check
set 'ageConfirmed' cookie
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user