Fix some comics.

This commit is contained in:
Bastian Kleineidam 2013-07-09 22:21:17 +02:00
parent 8d5ae7b1bb
commit d5172074d5
6 changed files with 7 additions and 25 deletions

View file

@ -162,15 +162,6 @@ class BloodBound(_BasicScraper):
help = 'Index format: yyyy/mm/name' help = 'Index format: yyyy/mm/name'
class BlueCrashKit(_BasicScraper):
url = 'http://robhamm.com/bluecrashkit/'
stripUrl = url + 'comics/blue-crash-kit/%s'
firstStripUrl = stripUrl % '2005-01-03'
imageSearch = compile(tagre("img", "src", r'(http://robhamm\.com/bluecrashkit/sites/default/files/comics/[^"]+)'))
prevSearch = compile(r'<li class="previous"><a href="([^"]+)">')
help = 'Index format: yyyy-mm-dd'
class BMovieComic(_BasicScraper): class BMovieComic(_BasicScraper):
description = u"A group of unlikely heroes tackles monsters, mutants and aliens from Hollywood's past and present. See what happens. Or they'll say you haven't seen it." description = u"A group of unlikely heroes tackles monsters, mutants and aliens from Hollywood's past and present. See what happens. Or they'll say you haven't seen it."
url = 'http://www.bmoviecomic.com/' url = 'http://www.bmoviecomic.com/'

View file

@ -130,19 +130,9 @@ class GleefulNihilism(_BasicScraper):
help = 'Index format: yyyy/mm/dd/stripname' help = 'Index format: yyyy/mm/dd/stripname'
class Goats(_BasicScraper):
description = u'goats: the comic strip | by jonathan rosenberg | new comics every mon-wed-fri'
url = 'http://www.goats.com/'
stripUrl = url + 'archive/%s.html'
firstStripUrl = stripUrl % '970401'
imageSearch = compile(r'<img.+?src="(/comix/.+?)"')
prevSearch = compile(r'<a href="(/archive/\d{6}.html)" class="button" title="go back">')
help = 'Index format: yymmdd'
class GoblinsComic(_BasicScraper): class GoblinsComic(_BasicScraper):
description = u'Goblins' description = u'Goblins'
url = 'http://www.goblinscomic.com/' url = 'http://www.goblinscomic.org/'
rurl = escape(url) rurl = escape(url)
stripUrl = url + '%s/' stripUrl = url + '%s/'
firstStripUrl = stripUrl % '06252005' firstStripUrl = stripUrl % '06252005'

View file

@ -29,7 +29,7 @@ class KevinAndKell(_BasicScraper):
url = 'http://www.kevinandkell.com/' url = 'http://www.kevinandkell.com/'
stripUrl = url + '%s/kk%s%s.html' stripUrl = url + '%s/kk%s%s.html'
firstStripUrl = stripUrl % ('1995', '09', '03') firstStripUrl = stripUrl % ('1995', '09', '03')
imageSearch = compile(r'<img.+?src="(/?(\d+/)?strips/kk\d+.gif)"', IGNORECASE) imageSearch = compile(r'<img.+?src="(/?(\d+/)?strips/kk\d+.(gif|jpg))"', IGNORECASE)
prevSearch = compile(r'<a.+?href="(/?(\.\./)?\d+/kk\d+\.html)"[^>]*><span>Previous Strip', IGNORECASE) prevSearch = compile(r'<a.+?href="(/?(\.\./)?\d+/kk\d+\.html)"[^>]*><span>Previous Strip', IGNORECASE)
help = 'Index format: yyyy-mm-dd' help = 'Index format: yyyy-mm-dd'

View file

@ -83,7 +83,7 @@ class OnTheEdge(_BasicScraper):
class OnTheFasttrack(_BasicScraper): class OnTheFasttrack(_BasicScraper):
url = 'http://www.onthefastrack.com/' url = 'http://www.onthefastrack.com/'
rurl = escape(url) rurl = escape(url)
stripUrl = url + '/?webcomic1=%s' stripUrl = url + '?webcomic1=%s'
firstStripUrl = stripUrl % '2010-08-09' firstStripUrl = stripUrl % '2010-08-09'
imageSearch = compile(tagre("img", "src", r'(%swp-content/uploads/\d+/\d+/[^"]+-\d+-\d+\.[^"]+)' % rurl)) imageSearch = compile(tagre("img", "src", r'(%swp-content/uploads/\d+/\d+/[^"]+-\d+-\d+\.[^"]+)' % rurl))
prevSearch = compile(tagre("a", "href", r'(%s\?webcomic1=[^"]+)' % rurl, after="prev")) prevSearch = compile(tagre("a", "href", r'(%s\?webcomic1=[^"]+)' % rurl, after="prev"))

View file

@ -21,7 +21,7 @@ class RealLife(_BasicScraper):
stripUrl = url + 'archive/%s.html' stripUrl = url + 'archive/%s.html'
firstStripUrl = stripUrl % '991115' firstStripUrl = stripUrl % '991115'
imageSearch = compile(tagre("img", "src", r'(/comics/[^"]+)')) imageSearch = compile(tagre("img", "src", r'(/comics/[^"]+)'))
prevSearch = compile(tagre("a", "href", r'(/archive/\d+.html)') + tagre("img", "src", r'/images/nav_prev\.png')) prevSearch = compile(tagre("a", "href", r'(/comic\.php\?[^"]+)', after="nav-previous"))
help = 'Index format: yymmdd)' help = 'Index format: yymmdd)'

View file

@ -184,10 +184,11 @@ class _ShadowGirls(_BasicScraper):
class Sheldon(_BasicScraper): class Sheldon(_BasicScraper):
description = u'The story of a software company tycoon billionaire ten-year-old, his grampa, his duck, his pug and a lizard.' description = u'The story of a software company tycoon billionaire ten-year-old, his grampa, his duck, his pug and a lizard.'
url = 'http://www.sheldoncomics.com/' url = 'http://www.sheldoncomics.com/'
rurl = escape(url)
stripUrl = url + 'archive/%s.html' stripUrl = url + 'archive/%s.html'
firstStripUrl = stripUrl % '011130' firstStripUrl = stripUrl % '011130'
imageSearch = compile(tagre("img", "src", r'(/strips/[^"]+)')) imageSearch = compile(tagre("img", "src", r'(http://cdn\.sheldoncomics\.com/strips/[^"]+)'))
prevSearch = compile(tagre("a", "href", r'(/archive/\d+\.html)', after="sidenav-prev")) prevSearch = compile(tagre("a", "href", r'(%sarchive/\d+\.html)' % rurl, after="sidenav-prev"))
help = 'Index format: yymmdd' help = 'Index format: yymmdd'