From d00310f017bb6035b02239278ccde13297c906ad Mon Sep 17 00:00:00 2001 From: Bastian Kleineidam Date: Wed, 10 Apr 2013 18:20:08 +0200 Subject: [PATCH] Add EverydayBlues --- doc/changelog.txt | 3 ++- dosagelib/plugins/e.py | 11 +++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/doc/changelog.txt b/doc/changelog.txt index 26825f347..eee6b6518 100644 --- a/doc/changelog.txt +++ b/doc/changelog.txt @@ -1,7 +1,8 @@ Dosage 2.0 (released xx.xx.2013) Features: -- comics: Added DamnLol, ExtraOrdinary, GoblinsComic, RealmOfAtland, Science, +- comics: Added DamnLol, EverydayBlues, ExtraOrdinary, GoblinsComic, + RealmOfAtland, Science, SnowFlakes, StuffNoOneToldMe, WebDesignerCOTW and ZenPencils. - comics: Added the --vote option to vote for popular comics. diff --git a/dosagelib/plugins/e.py b/dosagelib/plugins/e.py index 273a028ed..e2219992f 100644 --- a/dosagelib/plugins/e.py +++ b/dosagelib/plugins/e.py @@ -116,6 +116,17 @@ class EverybodyLovesEricRaymond(_BasicScraper): help = 'Index format: name-of-old-comic' +class EverydayBlues(_BasicScraper): + url = 'http://everydayblues.everydayblues.net/' + rurl = escape(url) + stripUrl = url + '%s/' + firstStripUrl = stripUrl % '2010/02/11/sometimes' + prevSearch = compile(tagre("a", "href", r'(%s\d+/\d+/\d+/[^"]+/)' % rurl, after="navi-prev")) + imageSearch = compile(tagre("img", "src", r'(%scomics/\d+-\d+-\d+-[^"]+)' % rurl)) + help = 'Index format: yyyy/mm/dd/stripname' + description = 'A daily webcomic about the ups and downs of love, relationships and singledom.' + + class EvilDiva(_BasicScraper): url = 'http://www.evildivacomics.com/' stripUrl = url + '?p=%s'