Add Caggage

This commit is contained in:
Bastian Kleineidam 2013-02-21 19:47:21 +01:00
parent 613233a2a9
commit 1a84431456
2 changed files with 14 additions and 7 deletions

View file

@ -1,8 +1,8 @@
Dosage 1.11 (released xx.xx.2013)
Features:
- comics: Added comic strips ManlyGuysDoingManlyThings, SandraAndWoo and
SupernormalStep.
- comics: Added comic strips Caggage, ManlyGuysDoingManlyThings,
SandraAndWoo and SupernormalStep.
Changes:
- comics: Always use connection pooling when downloading pages or files.
@ -10,9 +10,8 @@ Changes:
Fixes:
- comics: Correct the list of characters not to quote for URL path encoding.
This fixes a lot of download errors of DrunkDuck comics.
- comics: Fixed comic strips AbstruseGoose,
ASofterWorld, LasLindas, LookingForGroup and GUComics.
- comics: Removed broken comic strip AbominableCharlesChristopher.
- comics: Fixed a lot of comic strips (see git log for details).
Closes: GH bug #8
Dosage 1.10 (released 10.2.2013)

View file

@ -9,11 +9,19 @@ from ..helpers import bounceStarter
from ..util import tagre
class Caggage(_BasicScraper):
url = 'http://caggagecomic.com/'
stripUrl = url + 'archives/%s'
imageSearch = compile(tagre("img", "src", r'(http://caggagecomic\.com/comics/[^"]+)'))
prevSearch = compile(tagre("a", "href", r'(http://caggagecomic\.com/archives/\d+)', after="prev"))
help = 'Index format: number'
class CaptainSNES(_BasicScraper):
url = 'http://www.captainsnes.com/'
stripUrl = url + '%s/'
imageSearch = compile(r"<img src='(http://www\.captainsnes\.com/comics/[^']+)'")
prevSearch = compile(r'<a href="(http://www\.captainsnes\.com/[^"]+)"><span class="prev">')
imageSearch = compile(tagre("img", "src", r"(http://www\.captainsnes\.com/comics/[^']+)", quote="'"))
prevSearch = compile(tagre("a", "href", r'(http://www\.captainsnes\.com/[^"]+)') + tagre("span", "class", "prev"))
multipleImagesPerStrip = True
help = 'Index format: yyyy/mm/dd/nnn-stripname'