fixed Spinnerette

This commit is contained in:
Damjan Košir 2015-06-08 20:31:13 +12:00
parent 3d8a49d228
commit 6412e6e542

View file

@ -407,13 +407,12 @@ class SpareParts(_BasicScraper):
help = 'Index format: yyyymmdd' help = 'Index format: yyyymmdd'
class Spinnerette(_BasicScraper): class Spinnerette(_ParserScraper):
url = 'http://www.spinnyverse.com/' url = 'http://www.spinnyverse.com/'
rurl = escape(url) stripUrl = url + 'comic/%s'
stripUrl = url + 'index.php?id=%s' firstStripUrl = stripUrl % '02-09-2010'
firstStripUrl = stripUrl % '2010/02/09/02092010' imageSearch = '//div[@id="cc-comicbody"]//img'
imageSearch = compile(tagre("img", "src", r'(comics/[^"]+)', after="comic")) prevSearch = '//a[@class="prev"]'
prevSearch = compile(tagre("a", "href", r'(/index\.php\?id=[^"]+)', after="prev"))
help = 'Index format: number' help = 'Index format: number'