# -*- coding: iso-8859-1 -*- # Copyright (C) 2004-2005 Tristan Seligmann and Jonathan Jacobs from re import compile, IGNORECASE from ..scraper import _BasicScraper from ..helpers import queryNamer from ..util import tagre class MadamAndEve(_BasicScraper): latestUrl = 'http://www.madamandeve.co.za/week_of_cartns.php' stripUrl = None imageSearch = compile(r'') prevSearch = compile(r'
«
') help = 'Index format: good luck !' class Meek(_BasicScraper): latestUrl = 'http://www.meekcomic.com/' stripUrl = latestUrl + '%s' imageSearch = compile(r'meekcomic.com(/comics/.+?)"') prevSearch = compile(r'\s.+?(http://www.meekcomic.com/.+?)".+?Previous<') help = 'Index format: yyyy/mm/dd/ch-p/' class MegaTokyo(_BasicScraper): latestUrl = 'http://www.megatokyo.com/' stripUrl = latestUrl + 'strip/%s' imageSearch = compile(r'"(strips/.+?)"', IGNORECASE) prevSearch = compile(r'"(./strip/\d+?)">Prev') help = 'Index format: nnnn' class MyPrivateLittleHell(_BasicScraper): latestUrl = 'http://mutt.purrsia.com/mplh/' stripUrl = latestUrl + '?date=%s' imageSearch = compile(r'Prev') help = 'Index format: mm/dd/yyyy' class MacHall(_BasicScraper): latestUrl = 'http://www.machall.com/' stripUrl = latestUrl + 'view.php?date=%s' imageSearch = compile(r']+?src=\'drop_shadow/previous.gif\'>') help = 'Index format: yyyy-mm-dd' class Melonpool(_BasicScraper): latestUrl = 'http://www.melonpool.com/' stripUrl = latestUrl + 'd/%s.html' imageSearch = compile(tagre("img", "src", r'(/comic[s|/][^"]+)')) prevSearch = compile(tagre("a", "href", r'[^"]*(/d/\d+\.s?html)')+r"[^>]+/images/(?:nav_02|previous_day)\.gif") help = 'Index format: yyyymmdd' class Misfile(_BasicScraper): latestUrl = 'http://www.misfile.com/' stripUrl = latestUrl + '?page=%s' imageSearch = compile(r'') prevSearch = compile(r'') help = 'Index format: yyyy/mm/dd/strip-name'