Add AntiheroForHire
This commit is contained in:
parent
f15f5920c0
commit
7e9ca4daba
2 changed files with 24 additions and 1 deletions
|
@ -356,6 +356,29 @@ class ApartmentForTwo(_ParserScraper):
|
||||||
help = 'Index format: yyyymmdd'
|
help = 'Index format: yyyymmdd'
|
||||||
|
|
||||||
|
|
||||||
|
class AntiheroForHire(_ParserScraper):
|
||||||
|
stripUrl = 'https://www.giantrobot.club/antihero-for-hire/%s'
|
||||||
|
firstStripUrl = stripUrl % '2016/6/8/entrance-vigil'
|
||||||
|
url = firstStripUrl
|
||||||
|
imageSearch = '//div[@class="image-wrapper"]//img[not(@class="thumb-image")]'
|
||||||
|
multipleImagesPerStrip = True
|
||||||
|
endOfLife = True
|
||||||
|
archive = []
|
||||||
|
|
||||||
|
def starter(self):
|
||||||
|
# Build list of chapters for navigation
|
||||||
|
page = self.getPage(self.url)
|
||||||
|
archiveLinks = page.xpath('//ul[@class="archive-group-list"]//a[contains(@class, "archive-item-link")]')
|
||||||
|
for link in archiveLinks:
|
||||||
|
self.archive.append(link.get('href'))
|
||||||
|
return self.archive[0]
|
||||||
|
|
||||||
|
def getPrevUrl(self, url, data):
|
||||||
|
# Retrieve previous chapter from list
|
||||||
|
index = self.archive.index(url) + 1
|
||||||
|
return self.archive[index] if index < len(self.archive) else None
|
||||||
|
|
||||||
|
|
||||||
class AppleGeeks(_BasicScraper):
|
class AppleGeeks(_BasicScraper):
|
||||||
url = 'http://www.applegeeks.com/'
|
url = 'http://www.applegeeks.com/'
|
||||||
stripUrl = url + 'comics/viewcomic.php?issue=%s'
|
stripUrl = url + 'comics/viewcomic.php?issue=%s'
|
||||||
|
|
|
@ -383,7 +383,6 @@ class Removed(Scraper):
|
||||||
cls('HorribleVille'),
|
cls('HorribleVille'),
|
||||||
cls('KatzenfutterGeleespritzer'),
|
cls('KatzenfutterGeleespritzer'),
|
||||||
cls('KeenSpot/Adventurers', 'mov'),
|
cls('KeenSpot/Adventurers', 'mov'),
|
||||||
cls('KeenSpot/AntiheroForHire', 'mov'),
|
|
||||||
cls('Key'),
|
cls('Key'),
|
||||||
cls('KillerKomics'),
|
cls('KillerKomics'),
|
||||||
cls('Kukuburi'),
|
cls('Kukuburi'),
|
||||||
|
@ -655,6 +654,7 @@ class Renamed(Scraper):
|
||||||
cls('GoComics/WhiskeyFalls', 'ComicSherpa/WhiskeyFalls'),
|
cls('GoComics/WhiskeyFalls', 'ComicSherpa/WhiskeyFalls'),
|
||||||
cls('GoComics/Wrobbertcartoons', 'ComicSherpa/WrobbertCartoons'),
|
cls('GoComics/Wrobbertcartoons', 'ComicSherpa/WrobbertCartoons'),
|
||||||
cls('GoComics/Zootopia', 'ComicSherpa/Zootopia'),
|
cls('GoComics/Zootopia', 'ComicSherpa/Zootopia'),
|
||||||
|
cls('KeenSpot/AntiheroForHire', 'AntiheroForHire'),
|
||||||
cls('KeenSpot/ElGoonishShive', 'ElGoonishShive'),
|
cls('KeenSpot/ElGoonishShive', 'ElGoonishShive'),
|
||||||
cls('KeenSpot/ElGoonishShiveNP', 'ElGoonishShiveNP'),
|
cls('KeenSpot/ElGoonishShiveNP', 'ElGoonishShiveNP'),
|
||||||
cls('KeenSpot/Newshounds', 'KeenSpot/InfinityRefugees'),
|
cls('KeenSpot/Newshounds', 'KeenSpot/InfinityRefugees'),
|
||||||
|
|
Loading…
Reference in a new issue