Fix several comics.

This commit is contained in:
Bastian Kleineidam 2013-07-18 20:39:53 +02:00
parent 52593f93b4
commit ef4ae435a5
15 changed files with 51 additions and 40 deletions

View file

@ -1,11 +1,12 @@
Dosage 2.5 (released xx.xx.2013) Dosage 2.5 (released xx.xx.2013)
Features: Features:
- comics: Added EatLiver, ICanBarelyDraw, JimBenton, MarriedToTheSea, NatalieDee. - comics: Added EatLiver, ICanBarelyDraw, JimBenton, MarriedToTheSea
and NatalieDee.
Closes: GH bug #37 Closes: GH bug #37
Fixes: Fixes:
- comics: Fixed GoblinsComic, KevinAndKell and other comics. - comics: Fixed AxeCop, GoblinsComic, KevinAndKell and other comics.
Dosage 2.4 (released 24.6.2013) Dosage 2.4 (released 24.6.2013)

View file

@ -362,11 +362,18 @@ class AxeCop(_BasicScraper):
description = u'Axe Cop' description = u'Axe Cop'
url = 'http://axecop.com/' url = 'http://axecop.com/'
rurl = escape(url) rurl = escape(url)
starter = indirectStarter(url, starter = bounceStarter(url,
compile(tagre("a", "href", r'(%sindex\.php/acepisodes/read/episode_\d+/)' % rurl))) compile(tagre("a", "href", r'(%scomic/episode-\d+/)' % rurl, after="navi-next")))
stripUrl = url + 'index.php/acepisodes/read/%s/' stripUrl = url + 'comic/episode-%s/'
firstStripUrl = stripUrl % 'episode_0' firstStripUrl = stripUrl % '0'
imageSearch = compile(tagre("img", "src", r'(%simages/uploads/(?:axecop|AXE-COP|acmarried|nightmonster)[^"]+)' % rurl)) imageSearch = compile(tagre("img", "src", r'(http://mainsite\.axecop\.wpengine\.com/wp-content/uploads/sites/\d+/\d+/\d+/[^"]+)'))
prevSearch = compile(tagre("a", "href", r'(%sindex\.php/acepisodes/read/[^"]+)' % rurl) + prevSearch = compile(tagre("a", "href", r'(%scomic/episode-\d+/)' % rurl, after="navi-prev"))
tagre("img", "src", r'http://axecop\.com/acimages/buttons/page_left\.png')) help = 'Index format: number'
help = 'Index format: stripname'
@classmethod
def namer(cls, imageUrl, pageUrl):
extension = imageUrl.rsplit('.', 1)[1]
episode = pageUrl.rsplit('-', 1)[1]
episode = episode.strip('/')
return 'AxeCop-%s.%s' % (episode, extension)

View file

@ -29,7 +29,7 @@ def add(name, shortname):
#add('9ChickweedLane', '/thefunnies/ninechickweedlane/') #add('9ChickweedLane', '/thefunnies/ninechickweedlane/')
#add('Agnes', '/thefunnies/agnes/') #add('Agnes', '/thefunnies/agnes/')
#add('AndyCapp', '/thefunnies/andycapp/') #add('AndyCapp', '/thefunnies/andycapp/')
add('Archie', '/thefunnies/archie/') #add('Archie', '/thefunnies/archie/')
add('ArcticCircle', '/thefunnies/arcticcircle/') add('ArcticCircle', '/thefunnies/arcticcircle/')
#add('AskShagg', '/thefunnies/askshagg/') #add('AskShagg', '/thefunnies/askshagg/')
#add('BC', '/thefunnies/bc/') #add('BC', '/thefunnies/bc/')
@ -91,7 +91,7 @@ add('Mutts', '/thefunnies/mutts/')
#add('ReplyAll', '/thefunnies/replyall/') #add('ReplyAll', '/thefunnies/replyall/')
add('RhymeswithOrange', '/thefunnies/rhymeswithorange/') add('RhymeswithOrange', '/thefunnies/rhymeswithorange/')
#add('Rubes', '/thefunnies/rubes/') #add('Rubes', '/thefunnies/rubes/')
add('Rugrats', '/thefunnies/rugrats/') #add('Rugrats', '/thefunnies/rugrats/')
#add('ScaryGary', '/thefunnies/scarygary/') #add('ScaryGary', '/thefunnies/scarygary/')
#add('SpeedBump', '/thefunnies/speedbump/') #add('SpeedBump', '/thefunnies/speedbump/')
#add('StrangeBrew', '/thefunnies/strangebrew/') #add('StrangeBrew', '/thefunnies/strangebrew/')

View file

@ -119,7 +119,8 @@ class ChainsawSuit(_BasicScraper):
stripUrl = url + '%s/' stripUrl = url + '%s/'
firstStripUrl = stripUrl % '2008/03/12/strip-338' firstStripUrl = stripUrl % '2008/03/12/strip-338'
imageSearch = compile(tagre("img", "src", r'(%scomics/[^"]+)' % rurl)) imageSearch = compile(tagre("img", "src", r'(%scomics/[^"]+)' % rurl))
prevSearch = compile(tagre("a", "href", r'(%s\d+/\d+/\d+/[^"]+)' % rurl, after="prev")) prevSearch = compile(tagre("a", "href", r'(%s\d+/\d+/\d+/[^"]+)' % rurl) +
tagre("img", "alt", r'previous'))
help = 'Index format: yyyy/mm/dd/stripname' help = 'Index format: yyyy/mm/dd/stripname'

View file

@ -90,7 +90,6 @@ add('Boritom', 'http://boritom.webcomic.ws/', u'The scintillating adventures of
add('Brickland', 'http://brickland.webcomic.ws/', u'Tales of Brickland centers around four groups of people: Kristy and Drew (adventurers who traveled to another continent for, well, adventures), Gina (a ninja), Captain Slade and his pirate crew, and Queen Toshiko, returned from the dead and bent on world domination. Again. A silly fantasy comic told with minifigs and bricks that updates every Monday, Wednesday, and Friday.') add('Brickland', 'http://brickland.webcomic.ws/', u'Tales of Brickland centers around four groups of people: Kristy and Drew (adventurers who traveled to another continent for, well, adventures), Gina (a ninja), Captain Slade and his pirate crew, and Queen Toshiko, returned from the dead and bent on world domination. Again. A silly fantasy comic told with minifigs and bricks that updates every Monday, Wednesday, and Friday.')
add('BrokenReality', 'http://BrokenReality.webcomic.ws/', u'This story revolves around two teenage boys who suddenly find themselves living in japan for no apparent reason. Joined by twin Japanese girls, The four of them now seem to be living their lives in a world where the rules of reality are constantly being broken in one way or another.') add('BrokenReality', 'http://BrokenReality.webcomic.ws/', u'This story revolves around two teenage boys who suddenly find themselves living in japan for no apparent reason. Joined by twin Japanese girls, The four of them now seem to be living their lives in a world where the rules of reality are constantly being broken in one way or another.')
#add('Bulletproof', 'http://bulletproof.webcomic.ws/', u'In Junction City, there are men and women with strange powers and abilities, the Omega Humans. Ostracized by society, many turn to crime, while a few are employed by JCORP to keep the city safe. But can a corporation be trusted with law enforcement? Bulletproof is a B&W superhero comic set in a dystopian near-future city.') #add('Bulletproof', 'http://bulletproof.webcomic.ws/', u'In Junction City, there are men and women with strange powers and abilities, the Omega Humans. Ostracized by society, many turn to crime, while a few are employed by JCORP to keep the city safe. But can a corporation be trusted with law enforcement? Bulletproof is a B&W superhero comic set in a dystopian near-future city.')
add('Bunnysher', 'http://Bunnysher.webcomic.ws/', u'Lapin was meant to be featured in the official clip for the song Lucky Animals by The Devin Townsend Project. Sadly, his dance was rejected and the crushing pain made him endorse his favorite cosplay for good.. or bad.')
add('Bustysolar', 'http://bustysolar.webcomic.ws/', u'The space adventures of Busty Solar and her space police team. Lots of strange jokes and naughty fun.') add('Bustysolar', 'http://bustysolar.webcomic.ws/', u'The space adventures of Busty Solar and her space police team. Lots of strange jokes and naughty fun.')
add('Cannonadeofhogwash', 'http://cannonadeofhogwash.webcomic.ws/', u'As the title suggests, this is a cannonade of hogwash. Updated almost daily.') add('Cannonadeofhogwash', 'http://cannonadeofhogwash.webcomic.ws/', u'As the title suggests, this is a cannonade of hogwash. Updated almost daily.')
add('CatHero', 'http://CatHero.webcomic.ws/', u"Cat Hero's epic Catventures as an Hero, starring Cat Hero as Cat Hero, by Cat Hero; is a graphical representation of the (mis)adventures of a cat-person named Cat Hero, whose arch-nemesis is CatoreH, a life-sized cardboard cutout of a (very) badly drawn cat-person. Half a quick comic, half an experiment to see if single-panel gag-a-day style can actually convey a story, and be good doing it.") add('CatHero', 'http://CatHero.webcomic.ws/', u"Cat Hero's epic Catventures as an Hero, starring Cat Hero as Cat Hero, by Cat Hero; is a graphical representation of the (mis)adventures of a cat-person named Cat Hero, whose arch-nemesis is CatoreH, a life-sized cardboard cutout of a (very) badly drawn cat-person. Half a quick comic, half an experiment to see if single-panel gag-a-day style can actually convey a story, and be good doing it.")
@ -149,7 +148,6 @@ add('Flickwit', 'http://flickwit.webcomic.ws/', u"What's to know? A ragtag bunch
add('Foxtales', 'http://Foxtales.webcomic.ws/', u'A manga based on faerie folklore. After encountering a man who can change into a fox, a girl finds herself mixed up in a world of faeries and mythical creatures.') add('Foxtales', 'http://Foxtales.webcomic.ws/', u'A manga based on faerie folklore. After encountering a man who can change into a fox, a girl finds herself mixed up in a world of faeries and mythical creatures.')
add('Fpk', 'http://fpk.webcomic.ws/', u'Imagine those badly-photocopied zines that were left on the tables at your local coffee shop got a shave and a haircut, finished their fine arts degrees, and turned out to have really odd Monty Python-esque senses of humor. Then they got married and had a kid. That kid is FPK.') add('Fpk', 'http://fpk.webcomic.ws/', u'Imagine those badly-photocopied zines that were left on the tables at your local coffee shop got a shave and a haircut, finished their fine arts degrees, and turned out to have really odd Monty Python-esque senses of humor. Then they got married and had a kid. That kid is FPK.')
add('Fraternit', 'http://fraterni-t.webcomic.ws/', u"A comic strip about life, love, long-lost brothers, and everything else a high school girl has to deal with! THIS COMIC STRIP IS SEMI-AUTOBIOGRAPHICAL, WHICH MEANS MOST OF IT IS BASED ON THE IMAGINATION OF THE AUTHOR. ANY CHARACTERS THAT MAY BE BASED ON REAL PEOPLE HAVE HAD THEIR NAMES CHANGED. Special thanks to Jimmy Gownley, author of Amelia Rules! and cofounder of Kids Love Comics. Also, thanks to Bill Wahl, Nikki, my parents and friends. I couldn't have done it without you!") add('Fraternit', 'http://fraterni-t.webcomic.ws/', u"A comic strip about life, love, long-lost brothers, and everything else a high school girl has to deal with! THIS COMIC STRIP IS SEMI-AUTOBIOGRAPHICAL, WHICH MEANS MOST OF IT IS BASED ON THE IMAGINATION OF THE AUTHOR. ANY CHARACTERS THAT MAY BE BASED ON REAL PEOPLE HAVE HAD THEIR NAMES CHANGED. Special thanks to Jimmy Gownley, author of Amelia Rules! and cofounder of Kids Love Comics. Also, thanks to Bill Wahl, Nikki, my parents and friends. I couldn't have done it without you!")
add('Freakingawfulpuns', 'http://freakingawfulpuns.webcomic.ws/', u'FAP is a most of the time very random, somewhat poorly drawn, and sometimes political webcomic. Check us out on Facebook! [url]http://www.facebook.com/pages/Freaking-Awful-Puns-Webcomic/189101684454482[/url] "Laim is pretty cool I guess" -DSW "It can be funny enough to get suscribers" -MattWL "a quasi-ripoff of Cyanide and Happiness" -MrWeatherby "In general your site design is good... Thank you for letting me review your comic." -Bill Kloppenburg "You get nothing! You lose! Good day sir!" -Willy Wonka')
add('Friendshipisdragons', 'http://friendshipisdragons.webcomic.ws/', u"A screencap comic of My Little Pony: Friendship is Magic. Equestria is a custom campaign setting for Dungeons and Dragons, and the mane six are Player Characters. How will a party of six roleplayers fare in a world where the usual hack-'n'-slash high fantasy has been replaced by pastel-colored ponies?") add('Friendshipisdragons', 'http://friendshipisdragons.webcomic.ws/', u"A screencap comic of My Little Pony: Friendship is Magic. Equestria is a custom campaign setting for Dungeons and Dragons, and the mane six are Player Characters. How will a party of six roleplayers fare in a world where the usual hack-'n'-slash high fantasy has been replaced by pastel-colored ponies?")
add('Frontier2170', 'http://frontier2170.webcomic.ws/', u"Life as an independent spaceship crew isn't easy. In addition to the astronomical cost of fuel, supplies and repairs, it seems like the big corporate outfits get all the well-paying jobs, leaving the petty runs they don't want to people like you. Those jobs don't pay well enough to make ends meet, and there never seem to be enough of them, so sometimes you have to break the law to put fuel in the tanks and food on the table. If that wasn't bad enough, there's a war going on, and that means cargo inspections and surveillance...") add('Frontier2170', 'http://frontier2170.webcomic.ws/', u"Life as an independent spaceship crew isn't easy. In addition to the astronomical cost of fuel, supplies and repairs, it seems like the big corporate outfits get all the well-paying jobs, leaving the petty runs they don't want to people like you. Those jobs don't pay well enough to make ends meet, and there never seem to be enough of them, so sometimes you have to break the law to put fuel in the tanks and food on the table. If that wasn't bad enough, there's a war going on, and that means cargo inspections and surveillance...")
add('Fullmetalbrothers', 'http://fullmetalbrothers.webcomic.ws/', u'') add('Fullmetalbrothers', 'http://fullmetalbrothers.webcomic.ws/', u'')
@ -226,7 +224,6 @@ add('Mightymeteorite', 'http://mightymeteorite.webcomic.ws/', u"What would you d
add('Mildlyamusing', 'http://mildlyamusing.webcomic.ws/', u'A comic about life, happiness, and flights of fantasy.') add('Mildlyamusing', 'http://mildlyamusing.webcomic.ws/', u'A comic about life, happiness, and flights of fantasy.')
add('Minarga', 'http://minarga.webcomic.ws/', u"My longer-than-ever-anticipated Mass Effect fancomic, originally posted on deviantART, also available here. At the present time, I'm still working on the script, and will be posting first drafts of every chapter as I sketch them out. Finished pages will come when I've written the entire script and have layouts/rough drafts of all the pages. Again, just to cover all my bases, I do not own the Mass Effect universe; it's the creation of Bioware, and they own all the rights. I don't own a damn thing. More of my art is viewable at http://amethystsadachbia.deviantart.com/") add('Minarga', 'http://minarga.webcomic.ws/', u"My longer-than-ever-anticipated Mass Effect fancomic, originally posted on deviantART, also available here. At the present time, I'm still working on the script, and will be posting first drafts of every chapter as I sketch them out. Finished pages will come when I've written the entire script and have layouts/rough drafts of all the pages. Again, just to cover all my bases, I do not own the Mass Effect universe; it's the creation of Bioware, and they own all the rights. I don't own a damn thing. More of my art is viewable at http://amethystsadachbia.deviantart.com/")
add('Mirroredconversations', 'http://mirroredconversations.webcomic.ws/', u"There are things in life that often don't make sense. This comic highlights them.") add('Mirroredconversations', 'http://mirroredconversations.webcomic.ws/', u"There are things in life that often don't make sense. This comic highlights them.")
add('Mischeif', 'http://Mischeif.webcomic.ws/', u'//>LOADING INTERFACE;;;STOP RIGHT THERE READERS! Enter the semi auto-biography of my life drawn out for your entertainment! Enter Zeon the comic version of the me who is the same yet different, at the same time. (See what I did there?) Unemployed, lazy gaming, comic artist who finds entertainment in the little things. https://www.facebook.com/pages/Mischeif/267542906656329?fref=ts')
add('MoaK', 'http://MoaK.webcomic.ws/', u"Morgan was not having a good day. Her singer flounced; her basist, and brother, got a better offer; her drummer was blown up by a dragon-- Wait, what's a dragon doing in Chicago? And what's with the orcs with guns? Updates Tuesdays and Fridays, 3pm Chicago time (Currently a mirror from Drunk Duck. You can read it here, about a chapter behind, but with no delays for Writer's block and computer issues, or there for the current story, but with the occasional filler page/missed updates.)") add('MoaK', 'http://MoaK.webcomic.ws/', u"Morgan was not having a good day. Her singer flounced; her basist, and brother, got a better offer; her drummer was blown up by a dragon-- Wait, what's a dragon doing in Chicago? And what's with the orcs with guns? Updates Tuesdays and Fridays, 3pm Chicago time (Currently a mirror from Drunk Duck. You can read it here, about a chapter behind, but with no delays for Writer's block and computer issues, or there for the current story, but with the occasional filler page/missed updates.)")
add('MoizmadComix', 'http://MoizmadComix.webcomic.ws/', u"Crack detective Riddick Q. Loss' never-ending quest to catch the villainous Sir Dimswitch in 1950's Vancouver.") add('MoizmadComix', 'http://MoizmadComix.webcomic.ws/', u"Crack detective Riddick Q. Loss' never-ending quest to catch the villainous Sir Dimswitch in 1950's Vancouver.")
add('Monstersoup', 'http://monstersoup.webcomic.ws/', u'A group of misfit monsters are sentenced to live under the same roof--a castle belonging to mad scientist, who is serving his own sentence for unethical experiments. The real question is, can a hodgepodge group of monsters live under the same roof? (Some comedy, horror, and a little bit of everything else.)') add('Monstersoup', 'http://monstersoup.webcomic.ws/', u'A group of misfit monsters are sentenced to live under the same roof--a castle belonging to mad scientist, who is serving his own sentence for unethical experiments. The real question is, can a hodgepodge group of monsters live under the same roof? (Some comedy, horror, and a little bit of everything else.)')

View file

@ -136,7 +136,7 @@ class GoblinsComic(_BasicScraper):
rurl = escape(url) rurl = escape(url)
stripUrl = url + '%s/' stripUrl = url + '%s/'
firstStripUrl = stripUrl % '06252005' firstStripUrl = stripUrl % '06252005'
prevSearch = compile(tagre("a", "href", r'(%s\d+/)' % rurl, after="prev")) prevSearch = compile(tagre("a", "href", r'(%s[-\d]+/)' % rurl, after="prev"))
imageSearch = compile(tagre("img", "src", r'(%scomics/\d+\.[^"]+)' % rurl)) imageSearch = compile(tagre("img", "src", r'(%scomics/\d+\.[^"]+)' % rurl))
help = 'Index format: ddmmyyyy' help = 'Index format: ddmmyyyy'

View file

@ -59,7 +59,7 @@ class MarriedToTheSea(_BasicScraper):
description = u'comics by Drew & Natalie Dee - Updates daily at midnight' description = u'comics by Drew & Natalie Dee - Updates daily at midnight'
url = 'http://www.marriedtothesea.com/' url = 'http://www.marriedtothesea.com/'
rurl = escape(url) rurl = escape(url)
stripUrl = url + 'index.php?date=%s' stripUrl = url + '%s'
firstStripUrl = stripUrl % '022806' firstStripUrl = stripUrl % '022806'
imageSearch = compile(tagre("img", "src", r'(%s\d+/[^"]+)' % rurl, before="overflow")) imageSearch = compile(tagre("img", "src", r'(%s\d+/[^"]+)' % rurl, before="overflow"))
prevSearch = compile(tagre("a", "href", r'([^"]+)') + "<< Yesterday") prevSearch = compile(tagre("a", "href", r'([^"]+)') + "<< Yesterday")

View file

@ -37,7 +37,7 @@ class NatalieDee(_BasicScraper):
description = u"America's Favorite Cracker" description = u"America's Favorite Cracker"
url = 'http://www.nataliedee.com/' url = 'http://www.nataliedee.com/'
rurl = escape(url) rurl = escape(url)
stripUrl = url + 'index.php?date=%s' stripUrl = url + '%s'
firstStripUrl = stripUrl % '022806' firstStripUrl = stripUrl % '022806'
imageSearch = compile(tagre("img", "src", r'(%s\d+/[^"]+)' % rurl, before="overflow")) imageSearch = compile(tagre("img", "src", r'(%s\d+/[^"]+)' % rurl, before="overflow"))
prevSearch = compile(tagre("a", "href", r'([^"]+)') + "<< Yesterday") prevSearch = compile(tagre("a", "href", r'([^"]+)') + "<< Yesterday")

View file

@ -92,7 +92,7 @@ class OnTheFasttrack(_BasicScraper):
class OneQuestion(_BasicScraper): class OneQuestion(_BasicScraper):
url = 'http://onequestioncomic.com/' url = 'http://www.onequestioncomic.com/'
stripUrl = url + 'comic.php?strip_id=%s' stripUrl = url + 'comic.php?strip_id=%s'
firstStripUrl = stripUrl % '1' firstStripUrl = stripUrl % '1'
imageSearch = compile(tagre("img", "src", r'((?:\.\./)?istrip_files/strips/\d+\.\w{3,4})')) imageSearch = compile(tagre("img", "src", r'((?:\.\./)?istrip_files/strips/\d+\.\w{3,4})'))
@ -123,8 +123,8 @@ class OurHomePlanet(_BasicScraper):
class OverCompensating(_BasicScraper): class OverCompensating(_BasicScraper):
description = u'OVERCOMPENSATING: The Journal Comic With a Seething Disdain for Reality.' description = u'OVERCOMPENSATING: The Journal Comic With a Seething Disdain for Reality.'
url = 'http://www.overcompensating.com/' url = 'http://www.overcompensating.com/'
stripUrl = url + 'posts/%s.html' stripUrl = url + 'overcompensating/index.php?comic=%s'
firstStripUrl = stripUrl % '20040929' firstStripUrl = stripUrl % '0'
imageSearch = compile(r'<img src="(/comics/.+?)"') imageSearch = compile(tagre("img", "src", r'(/overcompensating/comics/[^"]+)'))
prevSearch = compile(r'"><a href="(.+?)"[^>]+?>&nbsp;\<\- &nbsp;</a>') prevSearch = compile(tagre("a", "href", r'(/overcompensating/index\.php\?comic=\d+)', after="go back"))
help = 'Index format: yyyymmdd' help = 'Index format: number'

View file

@ -2,7 +2,7 @@
# Copyright (C) 2004-2005 Tristan Seligmann and Jonathan Jacobs # Copyright (C) 2004-2005 Tristan Seligmann and Jonathan Jacobs
# Copyright (C) 2012-2013 Bastian Kleineidam # Copyright (C) 2012-2013 Bastian Kleineidam
from re import compile from re import compile, escape
from ..scraper import _BasicScraper from ..scraper import _BasicScraper
from ..helpers import bounceStarter from ..helpers import bounceStarter
from ..util import tagre from ..util import tagre
@ -17,12 +17,13 @@ class RadioactivePanda(_BasicScraper):
class RealLife(_BasicScraper): class RealLife(_BasicScraper):
url = 'http://www.reallifecomics.com/' url = 'http://reallifecomics.com/'
stripUrl = url + 'archive/%s.html' rurl = escape(url)
stripUrl = url + 'comic.php?comic=%s'
firstStripUrl = stripUrl % '991115' firstStripUrl = stripUrl % '991115'
imageSearch = compile(tagre("img", "src", r'(/comics/[^"]+)')) imageSearch = compile(tagre("img", "src", r'(%swp-content/uploads/\d+/\d+/[^"]+)' % rurl))
prevSearch = compile(tagre("a", "href", r'(/comic\.php\?[^"]+)', after="nav-previous")) prevSearch = compile(tagre("a", "href", r'((?:%s)?comic\.php\?comic=[^"]+)' % rurl, after="nav-previous"))
help = 'Index format: yymmdd)' help = 'Index format: monthname-dd-yyyy)'
class RealmOfAtland(_BasicScraper): class RealmOfAtland(_BasicScraper):

View file

@ -284,10 +284,10 @@ class SMBC(_BasicScraper):
description = u"Saturday Morning Breakfast Cereal" description = u"Saturday Morning Breakfast Cereal"
url = 'http://www.smbc-comics.com/' url = 'http://www.smbc-comics.com/'
rurl = escape(url) rurl = escape(url)
stripUrl = url + 'index.php?db=comics&id=%s' stripUrl = url + '?id=%s'
firstStripUrl = stripUrl % '1' firstStripUrl = stripUrl % '1'
imageSearch = compile(tagre("img", "src", r"(%scomics/\d{8}(?:\w2?|-\d)?\.\w{3})\s*" % rurl, quote="'")) imageSearch = compile(tagre("img", "src", r"(%scomics/\d{8}(?:\w2?|-\d)?\.\w{3})\s*" % rurl, quote="'"))
prevSearch = compile(r'131,13,216,84"\n\s+href="(.+?)#comic"\n>', MULTILINE) prevSearch = compile(tagre("a", "href", r'([^"]+)#comic', after="backRollover"))
help = 'Index format: nnnn' help = 'Index format: nnnn'
def shouldSkipUrl(self, url): def shouldSkipUrl(self, url):

View file

@ -36,8 +36,7 @@ class Unsounded(_BasicScraper):
stripUrl = url + 'comic/ch%s/ch%s_%s.html' stripUrl = url + 'comic/ch%s/ch%s_%s.html'
firstStripUrl = stripUrl % ('01', '01', '01') firstStripUrl = stripUrl % ('01', '01', '01')
rurl = escape(url) rurl = escape(url)
imageSearch = compile(tagre("div", "id", r'comic') + imageSearch = compile(tagre("img", "src", r'(pageart/[^"]*)'))
tagre("img", "src", r'(pageart/[^"]*)') )
prevSearch = compile(tagre("a", "href", r'([^"]*)', after='class="back')) prevSearch = compile(tagre("a", "href", r'([^"]*)', after='class="back'))
starter = indirectStarter(url, starter = indirectStarter(url,
compile(tagre("a", "href", r'(%scomic/[^"]*)' % rurl) + compile(tagre("a", "href", r'(%scomic/[^"]*)' % rurl) +

View file

@ -109,10 +109,10 @@ class WhyTheLongFace(_BasicScraper):
class Wigu(_BasicScraper): class Wigu(_BasicScraper):
description = u'WIGU: A COMIC ON INTERNET' description = u'WIGU: A COMIC ON INTERNET'
url = 'http://wigucomics.com/' url = 'http://wigucomics.com/'
stripUrl = url + 'adventures/index.php?comic=%s' stripUrl = url + 'mais/index.php?comic=%s'
firstStripUrl = stripUrl % '1' firstStripUrl = stripUrl % '1'
imageSearch = compile(tagre("img", "src", r'(/adventures/comics/[^"]+)')) imageSearch = compile(tagre("img", "src", r'(/mais/comics/[^"]+)'))
prevSearch = compile(tagre("a", "href", r'(/adventures/index\.php\?comic=\d+)', after="go back")) prevSearch = compile(tagre("a", "href", r'(/mais/index\.php\?comic=\d+)', after="go back"))
help = 'Index format: n' help = 'Index format: n'

View file

@ -20,11 +20,13 @@ class ZapComic(_BasicScraper):
class Zapiro(_BasicScraper): class Zapiro(_BasicScraper):
url = 'http://www.mg.co.za/zapiro/' url = 'http://www.mg.co.za/zapiro/'
starter = bounceStarter(url, starter = bounceStarter(url,
compile(tagre("a", "href", r'(http://mg\.co\.za/cartoon/[^"]+)')+"Newer")) compile(tagre("li", "class", r'nav_older') +
tagre("a", "href", r'(http://mg\.co\.za/cartoon/[^"]+)')))
stripUrl = 'http://mg.co.za/cartoon/%s' stripUrl = 'http://mg.co.za/cartoon/%s'
firstStripUrl = stripUrl % 'zapiro_681' firstStripUrl = stripUrl % 'zapiro_681'
imageSearch = compile(tagre("img", "src", r'(http://cdn\.mg\.co\.za/crop/content/cartoons/[^"]+)')) imageSearch = compile(tagre("img", "src", r'(http://cdn\.mg\.co\.za/crop/content/cartoons/[^"]+)'))
prevSearch = compile(tagre("a", "href", r'(http://mg\.co\.za/cartoon/[^"]+)')+"Older") prevSearch = compile(tagre("li", "class", r'nav_older') +
tagre("a", "href", r'(http://mg\.co\.za/cartoon/[^"]+)'))
help = 'Index format: yyyy-mm-dd-stripname' help = 'Index format: yyyy-mm-dd-stripname'
@classmethod @classmethod

View file

@ -52,6 +52,7 @@ exclude_comics = [
"Brainfood", # unsuitable navigation "Brainfood", # unsuitable navigation
"Bromosworld", # unsuitable navigation "Bromosworld", # unsuitable navigation
"BulletMythology", # unsuitable navigation "BulletMythology", # unsuitable navigation
"Bunnysher", # page moved
"BUXY", # unsuitable navigation "BUXY", # unsuitable navigation
"CafeGruesome", # unsuitable navigation "CafeGruesome", # unsuitable navigation
"Castofmadness", # unsuitable navigation "Castofmadness", # unsuitable navigation
@ -84,6 +85,7 @@ exclude_comics = [
"Fishbowl", # unsuitable navigation "Fishbowl", # unsuitable navigation
"Foe", # unsuitable navigation "Foe", # unsuitable navigation
"Foreignterritory", # unsuitable navigation "Foreignterritory", # unsuitable navigation
"Freakingawfulpuns", # page is gone
"Frigginrandom", # unsuitable navigation "Frigginrandom", # unsuitable navigation
"Frostfire", # unsuitable navigation "Frostfire", # unsuitable navigation
"Furnerdy", # unsuitable navigation "Furnerdy", # unsuitable navigation
@ -139,6 +141,7 @@ exclude_comics = [
"Megamaiden", # unsuitable navigation "Megamaiden", # unsuitable navigation
"Minebreakers", # unsuitable navigation "Minebreakers", # unsuitable navigation
"Minecraft2b2t", # unsuitable navigation "Minecraft2b2t", # unsuitable navigation
"Mischeif", # unsuitable navigation
"Mitadakesaga", # unsuitable navigation "Mitadakesaga", # unsuitable navigation
"Mlpfib", # unsuitable navigation "Mlpfib", # unsuitable navigation
"Monsterloverdp", # unsuitable navigation "Monsterloverdp", # unsuitable navigation