Switch BetterDays to parser scraper
This commit is contained in:
parent
5ca5da51fc
commit
016516e984
1 changed files with 4 additions and 3 deletions
|
@ -84,12 +84,13 @@ class Beetlebum(_BasicScraper):
|
|||
return name
|
||||
|
||||
|
||||
class BetterDays(_BasicScraper):
|
||||
class BetterDays(_ParserScraper):
|
||||
url = 'http://jaynaylor.com/betterdays/'
|
||||
stripUrl = url + 'archives/%s.html'
|
||||
firstStripUrl = stripUrl % '2003/04/post-2'
|
||||
imageSearch = compile(tagre("img", "src", r'(/betterdays/comic/[^>]+)', quote=""))
|
||||
prevSearch = compile(tagre("a", "href", r'([^"]+)') + '« Previous')
|
||||
imageSearch = '//img[contains(@src, "/betterdays/comic/")]'
|
||||
prevSearch = '//a[contains(text(), "Previous")]'
|
||||
endOfLife = True
|
||||
help = 'Index format: yyyy/mm/<your guess>'
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue