# -*- coding: iso-8859-1 -*- # Copyright (C) 2004-2005 Tristan Seligmann and Jonathan Jacobs # Copyright (C) 2012 Bastian Kleineidam from re import compile from ..scraper import _BasicScraper from ..helpers import bounceStarter, indirectStarter from ..util import tagre, getQueryParams class CaptainSNES(_BasicScraper): latestUrl = 'http://www.captainsnes.com/' stripUrl = latestUrl + '%s/' imageSearch = compile(r"') multipleImagesPerStrip = True help = 'Index format: yyyy/mm/dd/nnn-stripname' class CaribbeanBlue(_BasicScraper): latestUrl = 'http://cblue.katbox.net/' stripUrl = latestUrl + 'archive/%s' imageSearch = compile(tagre("img", "src", r'(http://cblue\.katbox\.net/wp-content/webcomic/cblue/[^"]+)')) prevSearch = compile(tagre("a", "href", r'(http://cblue\.katbox\.net/archive/[^"]+)', after="previous")) help = 'Index format: nnn-stripname' class Catena(_BasicScraper): latestUrl = 'http://catenamanor.com/' stripUrl = latestUrl + '%s' imageSearch = compile(tagre("img", "src", r'(http://catenamanor\.com/comics/[^"]+)')) prevSearch = compile(tagre("a", "href", r'([^"]+)', after='rel="prev"')) help = 'Index format: yyyy/mm/dd/' class ChasingTheSunset(_BasicScraper): latestUrl = 'http://www.fantasycomic.com/' stripUrl = latestUrl + 'index.php?p=c%s' imageSearch = compile(r'(/cmsimg/.+?)".+?comic-img') prevSearch = compile(r']+/images/(?:nav_02|previous_day)\.gif") help='Index format: yyyymmdd' class Chisuji(_BasicScraper): latestUrl = 'http://www.chisuji.com/' stripUrl = latestUrl + '%s' imageSearch = compile(r'') help = 'Index format: yyyy/mm/dd/strip-name' class ChugworthAcademy(_BasicScraper): latestUrl = 'http://chugworth.com/' stripUrl = latestUrl + '?p=%s' imageSearch = compile(r'Comic')
    prevSearch = compile(r'<a href=]+?title="Previous">') help = 'Index format: n (unpadded)' class ChugworthAcademyArchive(_BasicScraper): latestUrl = 'http://chugworth.com/archive/?strip_id=422' stripUrl = 'http://chugworth.com/archive/?strip_id=%s' imageSearch = compile(r'&laq') help = 'Index format: non' class Comedity(_BasicScraper): latestUrl = 'http://www.comedity.com/' stripUrl = latestUrl + 'index.php?strip_id=%s' imageSearch = compile(r' *\"Prior") help = 'Index format: n (unpadded)' class CyanideAndHappiness(_BasicScraper): latestUrl = 'http://www.explosm.net/comics/' stripUrl = latestUrl + '%s/' imageSearch = compile(tagre("img", "src", r'(http:\/\/www\.explosm\.net/db/files/Comics/[^"]+)')) prevSearch = compile(tagre("a", "href", r'(/comics/\d+/)', before="prev")) help = 'Index format: n (unpadded)' class CrimsonDark(_BasicScraper): latestUrl = 'http://www.davidcsimon.com/crimsondark/' stripUrl = latestUrl + 'index.php?view=comic&strip_id=%s' imageSearch = compile(r'src="(.+?strips/.+?)"') prevSearch = compile(r'') help = 'Index format: nnn' class CowboyJedi(_BasicScraper): latestUrl = 'http://www.cowboyjedi.com/' stripUrl = latestUrl + '%s' imageSearch = compile(tagre("img", "src", r'(http://www\.cowboyjedi.\com/comics/[^"]+)')) prevSearch = compile(r'') help = 'Index format: nnn' class CalamitiesOfNature(_BasicScraper): latestUrl = 'http://www.calamitiesofnature.com/' stripUrl = latestUrl + 'archive/?c=%s' imageSearch = compile(tagre("img", "src", r'(archive/\d+[^"]+|http://www\.calamitiesofnature\.com/archive/\d+[^"]+)')) prevSearch = compile(r'') help = 'Index format: nnn'