Switch Achewood to ParserScraper

This commit is contained in:
Tobias Gruetzmacher 2020-09-26 09:42:48 +02:00
parent fd779475c1
commit 383e759a0e

View file

@ -57,13 +57,12 @@ class AcademyVale(_BasicScraper):
help = 'Index format: nnn' help = 'Index format: nnn'
class Achewood(_BasicScraper): class Achewood(_ParserScraper):
url = 'http://www.achewood.com/' url = 'https://www.achewood.com/'
stripUrl = url + 'index.php?date=%s' stripUrl = url + 'index.php?date=%s'
firstStripUrl = stripUrl % '10012001' firstStripUrl = stripUrl % '10012001'
imageSearch = compile(tagre("img", "src", r'(/comic\.php\?date=\d+)')) imageSearch = '//p[@id="comic_body"]//img'
prevSearch = compile(tagre("a", "href", r'(index\.php\?date=\d+)', prevSearch = '//span[d:class("left")]/a[d:class("dateNav")]'
after="Previous"))
help = 'Index format: mmddyyyy' help = 'Index format: mmddyyyy'
namer = regexNamer(compile(r'date=(\d+)')) namer = regexNamer(compile(r'date=(\d+)'))