Split Catena into CatenaCafe & CatenaManor
This commit is contained in:
parent
1fe966102f
commit
6df6549c97
2 changed files with 35 additions and 2 deletions
|
@ -92,8 +92,40 @@ class CatAndGirl(_ParserScraper):
|
||||||
prevSearch = '//a[@rel="prev"]'
|
prevSearch = '//a[@rel="prev"]'
|
||||||
|
|
||||||
|
|
||||||
class Catena(_WordPressScraper):
|
class CatenaCafe(_WordPressScraper):
|
||||||
url = 'http://catenamanor.com/'
|
name = 'CatenaManor/CatenaCafe'
|
||||||
|
url = 'https://catenamanor.com/'
|
||||||
|
stripUrl = url + 'comic/%s/'
|
||||||
|
firstStripUrl = stripUrl % 'reboot-book1cover-small'
|
||||||
|
|
||||||
|
|
||||||
|
class CatenaManor(_ParserScraper):
|
||||||
|
# Retrieve comic from the Internet Archive
|
||||||
|
baseUrl = 'https://web.archive.org/web/20141027141116/http://catenamanor.com/'
|
||||||
|
url = baseUrl + 'archives'
|
||||||
|
stripUrl = baseUrl + '%s/'
|
||||||
|
firstStripUrl = stripUrl % '2003/07'
|
||||||
|
imageSearch = '//img[@class="comicthumbnail"]'
|
||||||
|
multipleImagesPerStrip = True
|
||||||
|
endOfLife = True
|
||||||
|
strips = []
|
||||||
|
|
||||||
|
def starter(self):
|
||||||
|
# Retrieve archive links and select valid range
|
||||||
|
archivePage = self.getPage(self.url)
|
||||||
|
archiveStrips = archivePage.xpath('//div[@id="archivepage"]//a')
|
||||||
|
valid = False
|
||||||
|
for link in archiveStrips:
|
||||||
|
if self.stripUrl % '2012/01' in link.get('href'):
|
||||||
|
valid = True
|
||||||
|
elif self.stripUrl % '2003/06' in link.get('href'):
|
||||||
|
valid = False
|
||||||
|
if valid:
|
||||||
|
self.strips.append(link.get('href'))
|
||||||
|
return self.strips.pop(0)
|
||||||
|
|
||||||
|
def getPrevUrl(self, url, data):
|
||||||
|
return self.strips.pop(0)
|
||||||
|
|
||||||
|
|
||||||
class CatsAndCameras(_WordPressScraper):
|
class CatsAndCameras(_WordPressScraper):
|
||||||
|
|
|
@ -565,6 +565,7 @@ class Renamed(Scraper):
|
||||||
return (
|
return (
|
||||||
# Renamed in 2.16
|
# Renamed in 2.16
|
||||||
cls('1997', '1977'),
|
cls('1997', '1977'),
|
||||||
|
cls('Catena', 'CatenaManor/CatenaCafe'),
|
||||||
cls('ComicFury/Alya', 'ComicFury/AlyaTheLastChildOfLight'),
|
cls('ComicFury/Alya', 'ComicFury/AlyaTheLastChildOfLight'),
|
||||||
cls('ComicFury/Boatcrash', 'ComicFury/BoatcrashChronicles'),
|
cls('ComicFury/Boatcrash', 'ComicFury/BoatcrashChronicles'),
|
||||||
cls('ComicFury/Crimsonpixel', 'ComicFury/CrimsonPixelComics'),
|
cls('ComicFury/Crimsonpixel', 'ComicFury/CrimsonPixelComics'),
|
||||||
|
|
Loading…
Reference in a new issue