Add IslaAukate and IslaAukateColor

This commit is contained in:
Techwolf 2019-06-19 01:27:06 -07:00 committed by Tobias Gruetzmacher
parent dd6e536a55
commit 6d76193a9f

View file

@ -7,7 +7,7 @@ from __future__ import absolute_import, division, print_function
from re import compile, escape from re import compile, escape
from ..scraper import _BasicScraper from ..scraper import _BasicScraper, _ParserScraper
from ..util import tagre from ..util import tagre
from .common import _WordPressScraper, _WPNavi from .common import _WordPressScraper, _WPNavi
@ -52,5 +52,28 @@ class IrregularWebcomic(_BasicScraper):
help = 'Index format: nnn' help = 'Index format: nnn'
class IslaAukate(_ParserScraper):
url = 'https://overlordcomic.com/archive/default/latest'
stripUrl = 'https://overlordcomic.com/archive/default/pages/%s'
firstStripUrl = stripUrl % '001'
imageSearch = '//div[@id="comicpage"]/img'
prevSearch = '//nav[@class="comicnav"]/a[text()="Prev"]'
class IslaAukateColor(_ParserScraper):
url = 'https://overlordcomic.com/archive/color/latest'
stripUrl = 'https://overlordcomic.com/archive/color/pages/%s'
firstStripUrl = stripUrl % '001'
imageSearch = '//div[@id="comicpage"]/img'
prevSearch = '//nav[@class="comicnav"]/a[text()="Prev"]'
def namer(self, imageUrl, pageUrl):
# Fix filenames of early comics
filename = imageUrl.rsplit('/', 1)[-1]
if filename[0].isdigit():
filename = 'Aukate' + filename
return filename
class ItsWalky(_WordPressScraper): class ItsWalky(_WordPressScraper):
url = 'http://www.itswalky.com/' url = 'http://www.itswalky.com/'