Add NotAVillain

This commit is contained in:
Techwolf 2019-06-20 23:51:39 -07:00 committed by Tobias Gruetzmacher
parent 013d10a1f2
commit 4a783c11ec

View file

@ -131,6 +131,25 @@ class NoNeedForBushido(_ParserScraper):
help = 'Index format: nnn' help = 'Index format: nnn'
class NotAVillain(_ParserScraper):
url = 'http://navcomic.com/'
stripUrl = url + 'not-a-villain/%s/'
firstStripUrl = stripUrl % 'v1-001'
imageSearch = '//div[@class="webcomic-image"]//img'
prevSearch = '//a[contains(@class, "previous-webcomic-link")]'
def namer(self, imageUrl, pageUrl):
filename = imageUrl.rsplit('/', 1)[-1]
# Fix filenames missing "Page"
if filename[2].isdigit():
filename = filename[0] + '-Page' + filename[2:]
# Fix filenames of early comics
filename = filename.replace('Page-', '1-Page')
if filename.startswith('0-Page'):
filename = '1' + filename[1:]
return filename
class NotInventedHere(_ParserScraper): class NotInventedHere(_ParserScraper):
url = 'http://notinventedhe.re/' url = 'http://notinventedhe.re/'
stripUrl = url + 'on/%s' stripUrl = url + 'on/%s'