Update LeastICouldDo (fixes #99)
This commit is contained in:
parent
84f6981d51
commit
2dbd3382f7
1 changed files with 5 additions and 8 deletions
|
@ -51,16 +51,13 @@ class LasLindas(_BasicScraper):
|
||||||
help = 'Index format: stripname'
|
help = 'Index format: stripname'
|
||||||
|
|
||||||
|
|
||||||
class LeastICouldDo(_BasicScraper):
|
class LeastICouldDo(_ParserScraper):
|
||||||
url = 'http://www.leasticoulddo.com/'
|
url = 'http://www.leasticoulddo.com/'
|
||||||
rurl = escape(url)
|
|
||||||
stripUrl = url + 'comic/%s'
|
stripUrl = url + 'comic/%s'
|
||||||
firstStripUrl = stripUrl % '20130109'
|
firstStripUrl = stripUrl % '20030210'
|
||||||
imageSearch = compile(tagre("img", "src", r'(%swp-content/uploads/\d+/\d+/\d{8,9}\.\w{1,4})' % rurl))
|
imageSearch = '//div[@id="content-comic"]//img'
|
||||||
prevSearch = compile(tagre("a", "href", r'(%scomic/\d+/)' % rurl,
|
prevSearch = '//a[@rel="prev"]'
|
||||||
after="Previous"))
|
latestSearch = '//a[@id="latest-comic"]'
|
||||||
latestSearch = compile(tagre("a", "href", r'(%scomic/\d+/)' % rurl,
|
|
||||||
after="feature-comic"))
|
|
||||||
starter = indirectStarter
|
starter = indirectStarter
|
||||||
help = 'Index format: yyyymmdd'
|
help = 'Index format: yyyymmdd'
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue