Fix some comics.

This commit is contained in:
Bastian Kleineidam 2012-10-11 17:39:38 +02:00
parent 979c97901b
commit 4470e13b1a
2 changed files with 10 additions and 27 deletions

View file

@ -33,19 +33,11 @@ class AbleAndBaker(_BasicScraper):
class AbominableCharlesChristopher(_BasicScraper): class AbominableCharlesChristopher(_BasicScraper):
latestUrl = 'http://abominable.cc/' latestUrl = 'http://abominable.cc/'
imageUrl = 'http://abominable.cc/%s' imageUrl = 'http://abominable.cc/%s'
imageSearch = compile(r'cc(/comics/.+?)"') imageSearch = compile(tagre("img", "src", r'(http://www\.abominable\.cc/comics/[^"]+)'))
prevSearch = compile(r'cc(/.+?)".+?prev') prevSearch = compile(tagre("a", "href", r'([^"]+)')+"[^<]+Previous")
help = 'Index format: yyyy/mm/dd/comicname' help = 'Index format: yyyy/mm/dd/comicname'
class AbstractGender(_BasicScraper):
latestUrl = 'http://www.abstractgender.com/'
imageUrl = 'http://www.abstractgender.com/?comic=%s'
imageSearch = compile(tagre('img', 'src', r'(comics/\d+\.\w+)'))
prevSearch = compile(tagre('a', 'href', r"(\?comic=\d+)")+tagre("img", "id", "comic_menu_prev"))
help = 'Index format: n (unpadded)'
class AbsurdNotions(_BasicScraper): class AbsurdNotions(_BasicScraper):
latestUrl = 'http://www.absurdnotions.org/page129.html' latestUrl = 'http://www.absurdnotions.org/page129.html'
imageUrl = 'http://www.absurdnotions.org/page%s.html' imageUrl = 'http://www.absurdnotions.org/page%s.html'
@ -200,8 +192,8 @@ class AnUnrehearsedRiot(_BasicScraper):
class ALLCAPS(_BasicScraper): class ALLCAPS(_BasicScraper):
latestUrl = 'http://www.allcapscomix.com/' latestUrl = 'http://www.allcapscomix.com/'
imageUrl = 'http://www.allcapscomix.com/%s' imageUrl = 'http://www.allcapscomix.com/%s'
imageSearch = compile(r'<img src="(http://www.allcapscomix.com/comics/.+?)"') imageSearch = compile(tagre("img", "src", r'(http://www\.allcapscomix\.com/comics/[^"]+)'))
prevSearch = compile(r'href="(.+?)">(&#9668; Previous|<span class="prev">)') prevSearch = compile(tagre("a", "href", r'([^"]+)')+r"[^<]+Previous</a>")
help = 'Index format: yyyy/mm/strip-name' help = 'Index format: yyyy/mm/strip-name'
@ -209,8 +201,8 @@ class ALLCAPS(_BasicScraper):
class ASkeweredParadise(_BasicScraper): class ASkeweredParadise(_BasicScraper):
latestUrl = 'http://aspcomics.net/' latestUrl = 'http://aspcomics.net/'
imageUrl = 'http://aspcomics.net/archindex.php?strip_id=%s' imageUrl = 'http://aspcomics.net/archindex.php?strip_id=%s'
imageSearch = compile(r'<img src="(istrip_files/strips/.+?)"') imageSearch = compile(tagre("img", "src", r'(http://aspcomics\.net/sites/default/files[^"]*/asp\d+\.jpg)[^"]+'))
prevSearch = compile(r'</a><a href="(.+?)"><img src="images/previous_day.jpg"') prevSearch = compile(tagre("a", "href", "(/comic/\d+)")+r"[^>]+Previous")
help = 'Index format: nnn' help = 'Index format: nnn'
@ -219,7 +211,7 @@ class AGirlAndHerFed(_BasicScraper):
starter = bounceStarter('http://www.agirlandherfed.com/', starter = bounceStarter('http://www.agirlandherfed.com/',
compile(r'<a href="([^"]+)">[^>]+Back')) compile(r'<a href="([^"]+)">[^>]+Back'))
imageUrl = 'http://www.agirlandherfed.com/img/strip/%s' imageUrl = 'http://www.agirlandherfed.com/img/strip/%s'
imageSearch = compile(r'<img src="(/img/strip/[^"]+\.jpg)"') imageSearch = compile(tagre("img", "src", r'(img/strip/[^"]+\.jpg)'))
prevSearch = compile(r'<a href="([^"]+)">[^>]+Back') prevSearch = compile(r'<a href="([^"]+)">[^>]+Back')
help = 'Index format: nnn' help = 'Index format: nnn'

View file

@ -2,6 +2,7 @@
# Copyright (C) 2004-2005 Tristan Seligmann and Jonathan Jacobs # Copyright (C) 2004-2005 Tristan Seligmann and Jonathan Jacobs
from re import compile from re import compile
from ..util import tagre
from ..scraper import _BasicScraper from ..scraper import _BasicScraper
@ -9,16 +10,6 @@ class NineteenNinetySeven(_BasicScraper):
name = '1997' name = '1997'
latestUrl = 'http://www.1977thecomic.com/' latestUrl = 'http://www.1977thecomic.com/'
imageUrl = 'http://www.1977thecomic.com/%s' imageUrl = 'http://www.1977thecomic.com/%s'
imageSearch = compile(r'<img src="(http://www.1977thecomic.com/comics-1977/.+?)"') imageSearch = compile(tagre("img", "src", r'(http://www\.1977thecomic\.com/comics-1977/[^"]+)'))
prevSearch = compile(r'<a href="(.+?)"><span class="prev">') prevSearch = compile(tagre("a", "href", r'([^"]+)')+"Previous")
help = 'Index format: yyyy/mm/dd/strip-name' help = 'Index format: yyyy/mm/dd/strip-name'
class EightHalfByEleven(_BasicScraper):
name = '8HalfByEleven'
latestUrl = 'http://www.lucastds.com/webcomic/'
imageUrl = 'http://www.lucastds.com/webcomic/index.php?strip_id=%s'
imageSearch = compile(r'<img src="(istrip_files/strips/.+?)"')
prevSearch = compile(r'</a><a href="(/webcomic/.+?)"><img[^>]+?src="themes/tedzsee/images/previous_a.png">')
help = 'Index format: nnn'