from re import compile, IGNORECASE, MULTILINE from ..helpers import _BasicScraper, bounceStarter, indirectStarter from ..util import getQueryParams class DMFA(_BasicScraper): latestUrl = 'http://www.missmab.com/' imageUrl = '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/' imageUrl = '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/' imageUrl = 'http://www.doemain.com/index.cgi/%s' imageSearch = compile(r"Previous Strip') prevSearch = compile(r'Previous Week,') help = 'Index format: nnnnn' class Dracula(_BasicScraper): latestUrl = 'http://draculacomic.net/' imageUrl = 'http://draculacomic.net/comic.php?comicID=%s' imageSearch = compile(r'« Prev') help = 'Index format: nnn' class DragonTails(_BasicScraper): latestUrl = 'http://www.dragon-tails.com/' imageUrl = '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' imageUrl = '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' imageUrl = '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/' imageUrl = '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/' imageUrl = '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'