From 98d5d9eb26253cf76ab7b44a49d5e61d2a24df4b Mon Sep 17 00:00:00 2001 From: Tobias Gruetzmacher Date: Thu, 2 Jul 2020 22:54:20 +0200 Subject: [PATCH] Switch SinFest to parser scraper (fixes #168) --- dosagelib/plugins/s.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/dosagelib/plugins/s.py b/dosagelib/plugins/s.py index f189e939a..61d4846c5 100644 --- a/dosagelib/plugins/s.py +++ b/dosagelib/plugins/s.py @@ -231,13 +231,13 @@ class ShotgunShuffle(_WordPressScraper): firstStripUrl = url + 'comic/pilot/' -class SinFest(_BasicScraper): - url = 'http://www.sinfest.net/' +class SinFest(_ParserScraper): + url = 'https://www.sinfest.net/' stripUrl = url + 'view.php?date=%s' - imageSearch = compile(tagre("img", "src", r'(btphp/comics/.+)', - after="alt")) - prevSearch = compile(tagre("a", "href", r'(view\.php\?date=.+)') + '\\s*' + - tagre("img", "src", r'\.\./images/prev\.gif')) + firstStripUrl = stripUrl % '2000-01-17' + imageSearch = '//img[contains(@src, "btphp/comics/")]' + textSearch = imageSearch + '/@alt' + prevSearch = '//a[./img[contains(@src, "images/prev")]]' help = 'Index format: yyyy-mm-dd'