From 58abcb282d0d6ee4e78c00cc965b219ec92415c6 Mon Sep 17 00:00:00 2001 From: Bastian Kleineidam Date: Mon, 11 Mar 2013 22:51:45 +0100 Subject: [PATCH] Added GeeksNextDoor. --- doc/changelog.txt | 2 +- dosagelib/plugins/g.py | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/doc/changelog.txt b/doc/changelog.txt index d3c1f3012..a0bf84370 100644 --- a/doc/changelog.txt +++ b/doc/changelog.txt @@ -2,7 +2,7 @@ Dosage 1.14 (released xx.xx.2013) Features: - comics: Added KeenSpot comic strips, enable ComicGenesis - comic strips, added FullFrontalNerdity. + comic strips, added FullFrontalNerdity, GeeksNextDoor. Dosage 1.13 (released 11.3.2013) diff --git a/dosagelib/plugins/g.py b/dosagelib/plugins/g.py index ad36a275a..6dfe17660 100644 --- a/dosagelib/plugins/g.py +++ b/dosagelib/plugins/g.py @@ -43,6 +43,15 @@ class Geeks(_BasicScraper): help = 'Index format: nnn' +class GeeksNextDoor(_BasicScraper): + url = 'http://www.geeksnextcomic.com/' + stripUrl = url + '%s.html' + imageSearch = compile(tagre("img", "src", r'(images/GND\d+[^"]+)')) + prevSearch = compile(tagre("a", "href", r'(\d+-\d+-\d+\.html)') + + tagre("img", "src", r'images/nav_prev\.png')) + help = 'Index format: yyyy-mm-dd' + + class GirlGenius(_BasicScraper): url = 'http://girlgeniusonline.com/comic.php' stripUrl = url + '?date=%s'