feat: Added "I Roved Out"

This commit is contained in:
D. Moonfire 2024-01-15 21:57:34 -06:00
parent ed296e724f
commit 19b2b91e91

View file

@ -51,6 +51,27 @@ class Inverloch(ParserScraper):
endOfLife = True endOfLife = True
class IRovedOut(ParserScraper):
url = 'https://www.irovedout.com/'
stripUrl = url + '%s/'
firstStripUrl = stripUrl % 'iro'
imageSearch = '//div[@id="comic"]//img'
prevSearch = '//a[@class="navi comic-nav-previous navi-prev"]'
def namer(self, imageUrl, pageUrl):
page = self.getPage(pageUrl)
strip = page.xpath('//div[@id="comic-wrap"]/@class')[0].replace('comic-id-', '')
parts = page.xpath('//div[@id="comic"]//img/@src')[0].split('/')
return "{0}-{1}-{2}-{3}".format(parts[5], parts[6], strip.zfill(5), parts[7])
def starter(self):
"""Return last gallery link."""
url = 'https://www.irovedout.com/'
data = self.getPage(url)
link = data.xpath('//a[@class="navi navi-last"]/@href').pop(0)
return link
class IrregularWebcomic(BasicScraper): class IrregularWebcomic(BasicScraper):
url = 'http://www.irregularwebcomic.net/' url = 'http://www.irregularwebcomic.net/'
stripUrl = url + '%s.html' stripUrl = url + '%s.html'