# -*- coding: iso-8859-1 -*- # Copyright (C) 2004-2005 Tristan Seligmann and Jonathan Jacobs from re import compile, IGNORECASE, MULTILINE from ..scraper import _BasicScraper from ..helpers import bounceStarter, indirectStarter from ..util import getQueryParams class DMFA(_BasicScraper): latestUrl = 'http://www.missmab.com/' stripUrl = 'http://missmab.com/Comics/Vol_%s.php' imageSearch = compile(r'', IGNORECASE) prevSearch = compile(r' <.+?/aprev.gif"') help = 'Index format: nnn' class DeepFried(_BasicScraper): latestUrl = 'http://www.whatisdeepfried.com/' stripUrl = 'http://www.whatisdeepfried.com/%s' imageSearch = compile(r'(http://www.whatisdeepfried.com/comics/.+?)"') prevSearch = compile(r'"(http://www.whatisdeepfried.com/.+?)">') help = 'Index format: non' class DoemainOfOurOwn(_BasicScraper): latestUrl = 'http://www.doemain.com/' stripUrl = 'http://www.doemain.com/index.cgi/%s' imageSearch = compile(r"') prevSearch = compile(r'Previous Week,') help = 'Index format: nnnnn' class Dracula(_BasicScraper): latestUrl = 'http://draculacomic.net/' stripUrl = 'http://draculacomic.net/comic.php?comicID=%s' imageSearch = compile(r'« Prev') help = 'Index format: nnn' class DragonTails(_BasicScraper): latestUrl = 'http://www.dragon-tails.com/' stripUrl = 'http://www.dragon-tails.com/archive.php?date=%s' imageSearch = compile(r'"(newcomic/.+?)"') prevSearch = compile(r'"(archive.+?)">.+n_2') help = 'Index format: yyyy-mm-dd' class DreamKeepersPrelude(_BasicScraper): latestUrl = 'http://www.dreamkeeperscomic.com/Prelude.php' stripUrl = 'http://www.dreamkeeperscomic.com/Prelude.php?pg=%s' imageSearch = compile(r'(images/PreludeNew/.+?)"') prevSearch = compile(r'(Prelude.php\?pg=.+?)"') help = 'Index format: n' class Drowtales(_BasicScraper): latestUrl = 'http://www.drowtales.com/mainarchive.php' stripUrl = 'http://www.drowtales.com/mainarchive.php?location=%s' imageSearch = compile(r'src=".(/tmpmanga/.+?)"') prevSearch = compile(r'.+?back') help = 'Index format: nnn.html' class DieselSweeties(_BasicScraper): latestUrl = 'http://www.dieselsweeties.com/' stripUrl = 'http://www.dieselsweeties.com/archive/%s' imageSearch = compile(r'src="(/hstrips/.+?)"') prevSearch = compile(r'href="(/archive/.+?)">(') starter = indirectStarter('http://dresdencodak.com/', compile(r'')) class DonkBirds(_BasicScraper): latestUrl = 'http://www.donkbirds.com/' stripUrl = 'http://www.donkbirds.com/index.php?date=%s' imageSearch = compile(r'Previous') help = 'Index format: yyyy-mm-dd' class DrawnByDrunks(_BasicScraper): starter = bounceStarter('http://www.drawnbydrunks.co.uk/', compile(r'')) stripUrl = 'http://www.drawnbydrunks.co.uk/?p=%s' imageSearch = compile(r'') help = 'Index format: nnn' @classmethod def namer(cls, imageUrl, pageUrl): return pageUrl.split('=')[-1] class DeathCord(_BasicScraper): latestUrl = 'http://deathchord.com/index.php' stripUrl = 'http://deathchord.com/__.php?comicID=%s' imageSearch = compile(r'?.+?]+?alt="Previous" />') help = 'Index format: nnn'