# -*- coding: iso-8859-1 -*- # Copyright (C) 2004-2005 Tristan Seligmann and Jonathan Jacobs # Copyright (C) 2012-2013 Bastian Kleineidam from re import compile, escape, IGNORECASE from ..scraper import _BasicScraper from ..util import tagre from ..helpers import indirectStarter class KatzenfutterGeleespritzer(_BasicScraper): url = 'http://www.katzenfuttergeleespritzer.de/' rurl = escape(url) stripUrl = url + 'comic/%s/' firstStripUrl = stripUrl % 'dont-drink-and-drive' imageSearch = ( compile(tagre("img", "src", r'(%swp-content/uploads/\d+/\d+/\d+-\d+-\d+[^"]+)' % rurl)), compile(tagre("img", "src", r'(%swp-content/uploads/\d+/\d+/mmai_404[^"]+)' % rurl)), ) prevSearch = compile(tagre("a", "href", r'(%scomic/[^"]+)' % rurl, after="navi-prev")) help = 'Index format: stripname' lang = 'de' class KevinAndKell(_BasicScraper): url = 'http://www.kevinandkell.com/' stripUrl = url + '%s/kk%s%s.html' firstStripUrl = stripUrl % ('1995', '09', '03') imageSearch = compile(r']*>Previous Strip', IGNORECASE) help = 'Index format: yyyy-mm-dd' def getIndexStripUrl(self, index): return self.stripUrl % tuple(map(int, index.split('-'))) class Key(_BasicScraper): baseUrl = 'http://key.shadilyn.com/' url = baseUrl + 'latestpage.html' stripUrl = baseUrl + 'pages/%s.html' imageSearch = compile(r'"((?:images/.+?)|(?:pages/images/.+?))"') prevSearch = compile(r'