[adultempire] bypass age confirmation check
set 'ageConfirmed' cookie
This commit is contained in:
@@ -24,6 +24,9 @@ class AdultempireGalleryExtractor(GalleryExtractor):
|
|||||||
GalleryExtractor.__init__(self, match)
|
GalleryExtractor.__init__(self, match)
|
||||||
self.gallery_id = match.group(2)
|
self.gallery_id = match.group(2)
|
||||||
|
|
||||||
|
def _init(self):
|
||||||
|
self.cookies.set("ageConfirmed", "true", domain="www.adultempire.com")
|
||||||
|
|
||||||
def metadata(self, page):
|
def metadata(self, page):
|
||||||
extr = text.extract_from(page, page.index('<div id="content">'))
|
extr = text.extract_from(page, page.index('<div id="content">'))
|
||||||
return {
|
return {
|
||||||
|
|||||||
Reference in New Issue
Block a user