feat: Added "I Roved Out"
This commit is contained in:
parent
ed296e724f
commit
19b2b91e91
1 changed files with 21 additions and 0 deletions
|
@ -51,6 +51,27 @@ class Inverloch(ParserScraper):
|
|||
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):
|
||||
url = 'http://www.irregularwebcomic.net/'
|
||||
stripUrl = url + '%s.html'
|
||||
|
|
Loading…
Reference in a new issue