From 558cde139c1854aad5c2028e50e91e52b69ec5db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Wed, 28 Oct 2020 21:51:31 +0100 Subject: [PATCH] [paheal] fix extraction (fixes #1088) --- gallery_dl/extractor/paheal.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/gallery_dl/extractor/paheal.py b/gallery_dl/extractor/paheal.py index 57521d696c..e0b04966a8 100644 --- a/gallery_dl/extractor/paheal.py +++ b/gallery_dl/extractor/paheal.py @@ -21,6 +21,9 @@ class PahealExtractor(SharedConfigMixin, Extractor): root = "https://rule34.paheal.net" def items(self): + self.session.cookies.set( + "ui-tnc-agreed", "true", domain="rule34.paheal.net") + yield Message.Version, 1 yield Message.Directory, self.get_metadata() @@ -65,7 +68,7 @@ def get_posts(self): page = self.request(url).text for post in text.extract_iter( - page, ''): yield self._extract_data(post) if ">Next<" not in page: @@ -79,7 +82,8 @@ def _extract_data(post): md5 , pos = text.extract(post, '/_thumbs/', '/', pos) url , pos = text.extract(post, '