From 4e5717be57f15017ddb27347b3f88df44dc43340 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damjan=20Ko=C5=A1ir?= Date: Tue, 10 Dec 2013 17:08:15 +1300 Subject: [PATCH] added comic Gaia --- dosagelib/plugins/g.py | 9 +++++++++ dosagelib/plugins/w.py | 11 +++++++++++ 2 files changed, 20 insertions(+) diff --git a/dosagelib/plugins/g.py b/dosagelib/plugins/g.py index c931d33d2..326db56b8 100644 --- a/dosagelib/plugins/g.py +++ b/dosagelib/plugins/g.py @@ -8,6 +8,15 @@ from ..scraper import _BasicScraper from ..helpers import indirectStarter from ..util import tagre +class Gaia(_BasicScraper): + description = u'Gaia, a story about the nature of reality, and the answer to Lilith?s simple, meek, world-shattering question: ?Will you come along??' + url = 'http://www.sandraandwoo.com/gaia/' + rurl = escape(url) + stripUrl = url + '%s/' + firstStripUrl = stripUrl % '2000/01/01/welcome-to-gaia/' + imageSearch = compile(tagre("img", "src", r'(%scomics/\d+-\d+-\d+-[^"]+)' % rurl)) + prevSearch = compile(tagre("a", "href", r'(%s\d+/\d+/\d+/[^"]+/)' % rurl, after="prev")) + help = 'Index format: yyyy/mm/dd/number-stripname' class Galaxion(_BasicScraper): description = u'Galaxion - Life. Love. Hyperspace.' diff --git a/dosagelib/plugins/w.py b/dosagelib/plugins/w.py index 20ec1f9b5..93c34fc4c 100644 --- a/dosagelib/plugins/w.py +++ b/dosagelib/plugins/w.py @@ -75,6 +75,17 @@ class WeCanSleepTomorrow(_BasicScraper): help = 'Index format: yyyy/mm/dd/stripname' +class Weregeek(_BasicScraper): + description = u'Weregeek' + url = 'http://www.weregeek.com/' + rurl = escape(url) + stripUrl = url + '%s/' + firstStripUrl = stripUrl % '2006/11/27/' + imageSearch = compile(tagre("img", "src", r'(%scomics/\d+-\d+-\d+[^"]+)' % rurl)) + prevSearch = compile(tagre("a", "href", r'((%s)?(/)?\d+/\d+/\d+/)'% rurl)+'\s*'+ tagre('img', 'src', '[^"]*previous_day.gif')) + help = 'Index format: yyyy/mm/dd' + + class WhiteNinja(_BasicScraper): baseUrl = 'http://www.whiteninjacomics.com/' url = baseUrl + 'comics.shtml'