From 75de0bc662bdb1933144e851ee286448379d09e6 Mon Sep 17 00:00:00 2001 From: Bastian Kleineidam Date: Sun, 9 Dec 2012 18:12:21 +0100 Subject: [PATCH] Added two more comics. --- dosagelib/plugins/i.py | 9 ++++++++- dosagelib/plugins/j.py | 8 ++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/dosagelib/plugins/i.py b/dosagelib/plugins/i.py index fe9677aef..bad5380f5 100644 --- a/dosagelib/plugins/i.py +++ b/dosagelib/plugins/i.py @@ -7,6 +7,14 @@ from ..scraper import _BasicScraper from ..util import tagre +class IanJay(_BasicScraper): + latestUrl = 'http://ianjay.net/' + stripUrl = latestUrl + '?p=%s' + imageSearch = compile(tagre("img", "src", r'(http://ianjay\.net/comics/\d+[^"]+)')) + prevSearch = compile(tagre("a", "href", r'(http://ianjay\.net/\?p=\d+)', after="Previous")) + help = 'Index foramt: nnn' + + class IDreamOfAJeanieBottle(_BasicScraper): latestUrl = 'http://jeaniebottle.com/' stripUrl = latestUrl + '?p=%s' @@ -37,4 +45,3 @@ class ItsWalky(_BasicScraper): imageSearch = compile(tagre("img", "src", r'(/comic[s|/][^"]+)')) prevSearch = compile(tagre("a", "href", r'[^"]*(/d/\d+\.s?html)')+r"[^>]+/images/(?:nav_02|previous_day)\.gif") help = 'Index format: yyyymmdd' - diff --git a/dosagelib/plugins/j.py b/dosagelib/plugins/j.py index ee35b2412..5b0e23a1b 100644 --- a/dosagelib/plugins/j.py +++ b/dosagelib/plugins/j.py @@ -31,6 +31,14 @@ class JoeAndMonkey(_BasicScraper): help = 'Index format: nnn' +class JohnnyWander(_BasicScraper): + latestUrl = 'http://www.johnnywander.com/' + stripUrl = latestUrl + 'comics/%s' + imageSearch = compile(tagre("img", "src", r'(http://www\.johnnywander\.com/files/comics/\d+\.jpg)')) + prevSearch = compile(tagre("a", "href", r'(/comics/\d+)') + r'prev') + help = 'Index format: nnn' + + class JustAnotherEscape(_BasicScraper): latestUrl = 'http://www.justanotherescape.com/' stripUrl = latestUrl + 'index.cgi?date=%s'