Add PowerNap

This commit is contained in:
Techwolf 2019-07-16 01:22:50 -07:00 committed by Tobias Gruetzmacher
parent e4ded6da25
commit deda610666

View file

@ -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'