# -*- coding: iso-8859-1 -*- # Copyright (C) 2004-2005 Tristan Seligmann and Jonathan Jacobs from re import compile, IGNORECASE from ..scraper import _BasicScraper class IDreamOfAJeanieBottle(_BasicScraper): latestUrl = 'http://jeaniebottle.com/' imageUrl = 'http://jeaniebottle.com/review.php?comicID=' imageSearch = compile(r'(/comics/.+?)"') prevSearch = compile(r'First".+?(review.php.+?)".+?prev_a.gif') help = 'Index format: n (unpadded)' class IrregularWebcomic(_BasicScraper): latestUrl = 'http://www.irregularwebcomic.net/' imageUrl = 'http://www.irregularwebcomic.net/cgi-bin/comic.pl?comic=%s' imageSearch = compile(r'') prevSearch = compile(r'Previous ') help = 'Index format: nnn' class InsideOut(_BasicScraper): latestUrl = 'http://www.insideoutcomic.com/' imageUrl = 'http://www.insideoutcomic.com/html/%s.html' imageSearch = compile(r'Picture12LYR.+?C="(.+?/assets/images/.+?)"') prevSearch = compile(r'Picture7LYR.+?F="(.+?/html/.+?)"') help = 'Index format: n_comic_name' class InkTank(_BasicScraper): shortName = 'inktank' def starter(self): return self.baseUrl + self.shortName + '/' def inkTank(name, shortName): @classmethod def _namer(cls, imageUrl, pageUrl): return '20%s-%s' % (imageUrl[-6:-4], imageUrl[-12:-7]) baseUrl = 'http://www.inktank.com/%s/' % (shortName,) return type('InkTank_%s' % name, (_BasicScraper,), dict( name='InkTank/' + name, latestUrl=baseUrl, imageUrl=baseUrl + 'd/%s.html', imageSearch=compile(r'Edellinen') class ICantDrawFeet(_BasicScraper): latestUrl = 'http://icantdrawfeet.com/' imageUrl = 'http://icantdrawfeet.com/%s' imageSearch = compile(r'src="(http://icantdrawfeet.com/comics/.+?)"') prevSearch = compile(r'