fixing ChainsawSuit
This commit is contained in:
parent
f8690af029
commit
c3abb93e99
1 changed files with 3 additions and 4 deletions
|
@ -109,14 +109,13 @@ class CatsAndCameras(_BasicScraper):
|
||||||
help = 'Index format: stripname'
|
help = 'Index format: stripname'
|
||||||
|
|
||||||
|
|
||||||
class ChainsawSuit(_BasicScraper):
|
class ChainsawSuit(_ParserScraper):
|
||||||
url = 'http://chainsawsuit.com/'
|
url = 'http://chainsawsuit.com/'
|
||||||
rurl = escape(url)
|
rurl = escape(url)
|
||||||
stripUrl = url + '%s/'
|
stripUrl = url + '%s/'
|
||||||
firstStripUrl = stripUrl % '2008/03/12/strip-338'
|
firstStripUrl = stripUrl % '2008/03/12/strip-338'
|
||||||
imageSearch = compile(tagre("img", "src", r'(%swp-content/uploads/\d+/\d+/[^"]+)' % rurl))
|
imageSearch = '//div[@id="comic"]//img'
|
||||||
prevSearch = compile(tagre("a", "href", r'(%scomic/\d+/\d+/\d+/[^"]+)' % rurl) +
|
prevSearch = '//img[@alt="previous"]/..'
|
||||||
tagre("img", "alt", r'previous'))
|
|
||||||
help = 'Index format: yyyy/mm/dd/stripname'
|
help = 'Index format: yyyy/mm/dd/stripname'
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue