Update LeastICouldDo (fixes #99)

This commit is contained in:
Tobias Gruetzmacher 2017-12-15 00:00:25 +01:00
parent 84f6981d51
commit 2dbd3382f7

View file

@ -51,16 +51,13 @@ class LasLindas(_BasicScraper):
help = 'Index format: stripname'
class LeastICouldDo(_BasicScraper):
class LeastICouldDo(_ParserScraper):
url = 'http://www.leasticoulddo.com/'
rurl = escape(url)
stripUrl = url + 'comic/%s'
firstStripUrl = stripUrl % '20130109'
imageSearch = compile(tagre("img", "src", r'(%swp-content/uploads/\d+/\d+/\d{8,9}\.\w{1,4})' % rurl))
prevSearch = compile(tagre("a", "href", r'(%scomic/\d+/)' % rurl,
after="Previous"))
latestSearch = compile(tagre("a", "href", r'(%scomic/\d+/)' % rurl,
after="feature-comic"))
firstStripUrl = stripUrl % '20030210'
imageSearch = '//div[@id="content-comic"]//img'
prevSearch = '//a[@rel="prev"]'
latestSearch = '//a[@id="latest-comic"]'
starter = indirectStarter
help = 'Index format: yyyymmdd'