From 68f14971e884e5e8eb740907363e3a54d90697bf Mon Sep 17 00:00:00 2001 From: Bastian Kleineidam Date: Tue, 9 Apr 2013 19:37:47 +0200 Subject: [PATCH] Added RealmOfAtland. --- doc/changelog.txt | 2 +- dosagelib/plugins/r.py | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/doc/changelog.txt b/doc/changelog.txt index b205d2f7e..a7cd51bac 100644 --- a/doc/changelog.txt +++ b/doc/changelog.txt @@ -1,7 +1,7 @@ Dosage 2.0 (released xx.xx.2013) Features: -- comics: Added ExtraOrdinary, GoblinsComic, SnowFlakes, +- comics: Added ExtraOrdinary, GoblinsComic, RealmOfAtland, SnowFlakes, StuffNoOneToldMe and WebDesignerCOTW. - comics: Added the --vote option to vote for popular comics. diff --git a/dosagelib/plugins/r.py b/dosagelib/plugins/r.py index b33ab70ff..7cad58742 100644 --- a/dosagelib/plugins/r.py +++ b/dosagelib/plugins/r.py @@ -24,6 +24,15 @@ class RealLife(_BasicScraper): help = 'Index format: yymmdd)' +class RealmOfAtland(_BasicScraper): + url = 'http://www.realmofatland.com/' + stripUrl = url + '?p=%s' + firstStripUrl = stripUrl % '1' + prevSearch = compile(tagre("a", "href", r'(\?p=\d+)', after="cg_back")) + imageSearch = compile(tagre("img", "src", r'(images/strips/atland\d+.[^"]+)')) + help = 'Index format: nnn' + + class RedMeat(_BasicScraper): url = 'http://www.redmeat.com/redmeat/current/index.html' starter = bounceStarter(url, compile(r'next'))