From deda61066684d8b9771668acb72b5ec77a3f53b1 Mon Sep 17 00:00:00 2001 From: Techwolf Date: Tue, 16 Jul 2019 01:22:50 -0700 Subject: [PATCH] Add PowerNap --- dosagelib/plugins/p.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/dosagelib/plugins/p.py b/dosagelib/plugins/p.py index 4706b1e48..589b68404 100644 --- a/dosagelib/plugins/p.py +++ b/dosagelib/plugins/p.py @@ -225,6 +225,20 @@ class PoppyOPossum(_WordPressScraper): firstStripUrl = stripUrl % 'a-story' +class PowerNap(_ParserScraper): + url = 'http://www.powernapcomic.com/' + stripUrl = url + 'd/%s.html' + firstStripUrl = stripUrl % '20110617' + imageSearch = '//img[contains(@src, "/pnap")]' + prevSearch = '//a[./img[contains(@src, "previous")]]' + + def imageUrlModifier(self, url, data): + return url.replace('\n', '').strip() + + def link_modifier(self, fromurl, tourl): + return tourl.replace('\n', '').strip() + + class Precocious(_ParserScraper): url = 'http://www.precociouscomic.com/' stripUrl = url + 'archive/comic/%s'