Fix Curvy

This commit is contained in:
Bastian Kleineidam 2013-04-04 18:30:27 +02:00
parent b3cbad37bc
commit 5d6e210c98

View file

@ -182,8 +182,18 @@ class Curvy(_BasicScraper):
url = 'http://www.c.urvy.org/'
stripUrl = url + '?date=%s'
imageSearch = compile(tagre("img", "src", r'(/c/[^"]+)'))
prevSearch = compile(tagre("a", "href", r'(/\?date=\d+)') + tagre("img", "src", "/nav/prev\.png"))
prevSearch = compile(tagre("a", "href", r'(/\?date=\d+)') +
tagre("img", "src", "/nav/prev\.png"))
help = 'Index format: yyyymmdd'
starter = bounceStarter(url,
compile(tagre("a", "href", r'(/\?date=\d+)') +
tagre("img", "src", "/nav/next\.png")))
def shouldSkipUrl(self, url):
"""Skip pages without images."""
return url in (
self.stripUrl % '20130402',
)
class CatAndGirl(_BasicScraper):