Switch SinFest to parser scraper (fixes #168)

This commit is contained in:
Tobias Gruetzmacher 2020-07-02 22:54:20 +02:00
parent 684ba1f909
commit 98d5d9eb26

View file

@ -231,13 +231,13 @@ class ShotgunShuffle(_WordPressScraper):
firstStripUrl = url + 'comic/pilot/' firstStripUrl = url + 'comic/pilot/'
class SinFest(_BasicScraper): class SinFest(_ParserScraper):
url = 'http://www.sinfest.net/' url = 'https://www.sinfest.net/'
stripUrl = url + 'view.php?date=%s' stripUrl = url + 'view.php?date=%s'
imageSearch = compile(tagre("img", "src", r'(btphp/comics/.+)', firstStripUrl = stripUrl % '2000-01-17'
after="alt")) imageSearch = '//img[contains(@src, "btphp/comics/")]'
prevSearch = compile(tagre("a", "href", r'(view\.php\?date=.+)') + '\\s*' + textSearch = imageSearch + '/@alt'
tagre("img", "src", r'\.\./images/prev\.gif')) prevSearch = '//a[./img[contains(@src, "images/prev")]]'
help = 'Index format: yyyy-mm-dd' help = 'Index format: yyyy-mm-dd'