Switch Achewood to ParserScraper
This commit is contained in:
parent
fd779475c1
commit
383e759a0e
1 changed files with 4 additions and 5 deletions
|
@ -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+)'))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue