From 932f5ba57b62eacd03ad62d014008cfcc680d72a Mon Sep 17 00:00:00 2001 From: Tobias Gruetzmacher Date: Sun, 2 Feb 2020 21:08:26 +0100 Subject: [PATCH] Webtoons: Set ageGatePass cookie This is only done via JavaScript, but seems to be required in some regions to use the site. --- dosagelib/plugins/webtoons.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dosagelib/plugins/webtoons.py b/dosagelib/plugins/webtoons.py index fbff1a11b..24ba1e1af 100644 --- a/dosagelib/plugins/webtoons.py +++ b/dosagelib/plugins/webtoons.py @@ -22,6 +22,8 @@ class WebToons(_ParserScraper): self.firstStripUrl = self.stripUrl % '1' def starter(self): + # Set age-check cookie + self.session.cookies.set('ageGatePass', 'true', domain='webtoons.com') # Find current episode number listPage = self.getPage(self.listUrl) currentEpisode = listPage.xpath('//div[@class="detail_lst"]/ul/li')[0].attrib['data-episode-no']