Fix more comics using the Internet Archive

This commit is contained in:
Tobias Gruetzmacher 2021-08-31 00:11:28 +02:00
parent 3ed4b701ca
commit 05a873a40f
3 changed files with 9 additions and 7 deletions

View file

@ -158,9 +158,10 @@ class ALessonIsLearned(_BasicScraper):
class Alice(_WordPressScraper): class Alice(_WordPressScraper):
url = 'http://www.alicecomics.com/' url = 'https://web.archive.org/web/20210115132313/http://www.alicecomics.com/'
latestSearch = '//a[text()="Latest Alice!"]' latestSearch = '//a[text()="Latest Alice!"]'
starter = indirectStarter starter = indirectStarter
endOfLife = True
class AlienLovesPredator(_BasicScraper): class AlienLovesPredator(_BasicScraper):

View file

@ -156,7 +156,7 @@ class FoxDad(_ParserScraper):
class FoxTails(_ParserScraper): class FoxTails(_ParserScraper):
stripUrl = 'http://foxtails.magickitsune.com/strips/%s.html' stripUrl = 'https://web.archive.org/web/20200920134555/http:/foxtails.magickitsune.com/strips/%s.html'
url = stripUrl % 'current' url = stripUrl % 'current'
firstStripUrl = stripUrl % '20041024' firstStripUrl = stripUrl % '20041024'
imageSearch = '//img[contains(@src, "img/2")]' imageSearch = '//img[contains(@src, "img/2")]'
@ -167,7 +167,7 @@ class FoxTails(_ParserScraper):
# Include pre-reboot archive # Include pre-reboot archive
if url == self.stripUrl % '20090906': if url == self.stripUrl % '20090906':
return self.stripUrl % '20090704' return self.stripUrl % '20090704'
return super(FoxTails, self).getPrevUrl(url, data) return super().getPrevUrl(url, data)
class Fragile(_ParserScraper): class Fragile(_ParserScraper):

View file

@ -69,12 +69,13 @@ class RealLife(_WordPressScraper):
return urljoin(url, target) return urljoin(url, target)
class RealmOfAtland(_BasicScraper): class RealmOfAtland(_ParserScraper):
url = 'http://www.realmofatland.com/' url = 'https://web.archive.org/web/20201225151926/http://www.realmofatland.com/'
stripUrl = url + '?p=%s' stripUrl = url + '?p=%s'
firstStripUrl = stripUrl % '1' firstStripUrl = stripUrl % '1'
prevSearch = compile(tagre("a", "href", r'(\?p=\d+)', after="cg_back")) prevSearch = '//a[@id="cg_back"]'
imageSearch = compile(tagre("img", "src", r'(images/strips/atland\d+.[^"]+)')) imageSearch = '//p[@id="cg_img"]//img'
endOfLife = True
help = 'Index format: nnn' help = 'Index format: nnn'