fixing CourtingDisaster

This commit is contained in:
Damjan Košir 2015-05-20 23:16:54 +12:00
parent ff239ff58e
commit 80b783c016
2 changed files with 1 additions and 9 deletions

View file

@ -268,15 +268,6 @@ class CorydonCafe(_BasicScraper):
return pageUrl.split('/')[-1].split('.')[0] return pageUrl.split('/')[-1].split('.')[0]
class CourtingDisaster(_BasicScraper):
url = 'http://www.courting-disaster.com/'
stripUrl = url + 'archive/%s.html'
firstStripUrl = stripUrl % '20050112'
imageSearch = compile(tagre("img", "src", r'(/comics/[^"]+)'))
prevSearch = compile(tagre("a", "href", r'(/archive/\d+\.html)') + tagre("img", "src", r'/images/previous\.gif'))
help = 'Index format: yyyymmdd'
class CowboyJedi(_BasicScraper): class CowboyJedi(_BasicScraper):
url = 'http://www.cowboyjedi.com/' url = 'http://www.cowboyjedi.com/'
rurl = escape(url) rurl = escape(url)

View file

@ -15,4 +15,5 @@ def add(name, url, firstUrl=None, lang=None):
attrs['firstUrl'] = url + firstUrl attrs['firstUrl'] = url + firstUrl
globals()[name] = make_scraper(name, _ParserScraper, **attrs) globals()[name] = make_scraper(name, _ParserScraper, **attrs)
add('CourtingDisaster', 'http://www.courting-disaster.com/', 'comic/courting-disaster-17/')
add('Hipsters', 'http://www.hipsters-comic.com/', 'comic/hip01/') add('Hipsters', 'http://www.hipsters-comic.com/', 'comic/hip01/')