diff --git a/doc/changelog.txt b/doc/changelog.txt index 77321d46c..00c9a4c5a 100644 --- a/doc/changelog.txt +++ b/doc/changelog.txt @@ -2,7 +2,7 @@ Dosage 2.0 (released xx.xx.2013) Features: - comics: Added ExtraOrdinary, GoblinsComic, RealmOfAtland, Science, - SnowFlakes, StuffNoOneToldMe and WebDesignerCOTW. + SnowFlakes, StuffNoOneToldMe, WebDesignerCOTW and ZenPencils. - comics: Added the --vote option to vote for popular comics. Changes: diff --git a/dosagelib/plugins/z.py b/dosagelib/plugins/z.py index a15d297ba..ba5736955 100644 --- a/dosagelib/plugins/z.py +++ b/dosagelib/plugins/z.py @@ -39,6 +39,16 @@ class ZebraGirl(_BasicScraper): help = 'Index format: yyyy-mm-dd' +class ZenPencils(_BasicScraper): + url = 'http://zenpencils.com/' + stripUrl = url + 'comic/%s/' + firstStripUrl = stripUrl % '1-ralph-waldo-emerson-make-them-cry' + prevSearch = compile(tagre("a", "href", r'(http://zenpencils\.com/comic/[^"]+/)', after="navi-prev")) + imageSearch = compile(tagre("img", "src", r'(http://maxcdn\.zenpencils\.com/comics/\d+-\d+-\d+[^"]+)')) + help = 'Index format: num-stripname' + description = u'Inspirational quotes from famous people adapted into cartoons.' + + class ZombieHunters(_BasicScraper): url = 'http://www.thezombiehunters.com/' stripUrl = url + '?strip_id=%s'