From 137e30b3ac1c208aedd48352de9dc5e3cf1de6d1 Mon Sep 17 00:00:00 2001 From: Bastian Kleineidam Date: Wed, 6 Feb 2013 07:03:29 +0100 Subject: [PATCH] Added Nedroid comic strip. --- doc/changelog.txt | 2 +- dosagelib/plugins/n.py | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/doc/changelog.txt b/doc/changelog.txt index 269b54d36..3e2a8469b 100644 --- a/doc/changelog.txt +++ b/doc/changelog.txt @@ -2,7 +2,7 @@ Dosage 1.10 (released xx.xx.2013) Features: - comics: Added comic strips SequentialArt, VampireCheerleader, - GrrlPower, Spinnerette, HijinksEnsue. + GrrlPower, Spinnerette, HijinksEnsue, Nedroid. Changes: - cmdline: Added the --continue option. diff --git a/dosagelib/plugins/n.py b/dosagelib/plugins/n.py index 8573898f1..9f226fcb2 100644 --- a/dosagelib/plugins/n.py +++ b/dosagelib/plugins/n.py @@ -16,6 +16,14 @@ class NamirDeiter(_BasicScraper): help = 'Index format: yyyymmdd' +class Nedroid(_BasicScraper): + url = 'http://nedroid.com/' + stripUrl = url + '%s/' + imageSearch = compile(tagre("img", "src", r'(http://nedroid\.com/comics/[^"]+)')) + prevSearch = compile(tagre("a", "href", r'(http://nedroid\.com/\d+/\d+/[^"]+)', after="prev")) + help = 'Index format: yyyy/mm/dd/name' + + class NeoEarth(_BasicScraper): url = 'http://www.neo-earth.com/NE/' stripUrl = url + 'index.php?date=%s'