# -*- coding: iso-8859-1 -*- # Copyright (C) 2004-2005 Tristan Seligmann and Jonathan Jacobs from re import compile from ..scraper import _BasicScraper from ..helpers import bounceStarter class RadioactivePanda(_BasicScraper): latestUrl = 'http://www.radioactivepanda.com/' imageUrl = 'http://www.radioactivepanda.com/comic/%s' imageSearch = compile(r'") help = 'Index format: non' class RealLife(_BasicScraper): latestUrl = 'http://www.reallifecomics.com/' imageUrl = 'http://www.reallifecomics.com/achive/%s.html' imageSearch = compile(r'"(/comics/.+?)"') prevSearch = compile(r'"(/archive/.+?)".+?nav_previous') help = 'Index format: yymmdd)' class RedString(_BasicScraper): latestUrl = 'http://www.redstring.strawberrycomics.com/' imageUrl = 'http://www.redstring.strawberrycomics.com/?p=%s' imageSearch = compile(r'Previous Comic') help = 'Index format: nnn' class Roza(_BasicScraper): latestUrl = 'http://www.junglestudio.com/roza/index.php' imageUrl = 'http://www.junglestudio.com/roza/index.php\?date=%s' imageSearch = compile(r'[^>].+?navtable_01.gif') help = 'Index format: yyyy-mm-dd' class RedMeat(_BasicScraper): starter = bounceStarter('http://www.redmeat.com/redmeat/current/index.html', compile(r'next')) imageUrl = 'http://www.redmeat.com/redmeat/%s/index.html' imageSearch = compile(r']*>') prevSearch = compile(r'previous') help = 'Index format: yyyy-mm-dd' @classmethod def namer(cls, imageUrl, pageUrl): return imageUrl.split('/')[-2] class RunningWild(_BasicScraper): latestUrl = 'http://runningwild.katbox.net/' imageUrl = 'http://runningwild.katbox.net/index.php?strip_id=%s' imageSearch = compile(r'="(.+?strips/.+?)"') prevSearch = compile(r'(index.php\?strip_id=.+?)".+?navigation_back') help = 'Index format: n (unpadded)'