[webtoons] update agegate/GDPR cookies

This commit is contained in:
Mike Fährmann
2021-04-17 02:26:49 +02:00
parent d89eb7536b
commit c4210b5371

View File

@@ -23,10 +23,14 @@ class WebtoonsExtractor(Extractor):
Extractor.__init__(self, match) Extractor.__init__(self, match)
self.path, self.lang, self.genre , self.comic, self.query = \ self.path, self.lang, self.genre , self.comic, self.query = \
match.groups() match.groups()
cookies = self.session.cookies self._update_cookies({
cookies.set("pagGDPR", "true", domain=self.cookiedomain) "atGDPR" : "AD_CONSENT",
cookies.set("rstagGDPR_DE", "true", domain=self.cookiedomain) "needCCPA" : "false",
cookies.set("ageGatePass", "true", domain=self.cookiedomain) "needCOPPA" : "false",
"needGDPR" : "false",
"pagGDPR" : "true",
"ageGatePass": "true",
})
def request(self, url, **kwargs): def request(self, url, **kwargs):
response = Extractor.request(self, url, **kwargs) response = Extractor.request(self, url, **kwargs)