# -*- coding: iso-8859-1 -*- # Copyright (C) 2004-2005 Tristan Seligmann and Jonathan Jacobs # Copyright (C) 2012-2013 Bastian Kleineidam from re import compile, escape, IGNORECASE from ..scraper import _BasicScraper from ..util import tagre class MacHall(_BasicScraper): url = 'http://www.machall.com/' stripUrl = url + 'view.php?date=%s' firstStripUrl = stripUrl % '2000-11-07' imageSearch = compile(r']+?src=\'drop_shadow/previous.gif\'>') help = 'Index format: yyyy-mm-dd' # broken links - disable for now class MadamAndEve(_BasicScraper): url = 'http://www.madamandeve.co.za/week_of_cartns.php' stripUrl = None imageSearch = compile(r'') prevSearch = compile(r'Prev') help = 'Index format: nnnn' class Meiosis(_BasicScraper): url = 'http://meiosiswebcomic.com/' rurl = escape(url) stripUrl = url + '%s/' firstStripUrl = stripUrl % '2006/10/10142006' imageSearch = compile(tagre("img", "src", r'(%scomics/[^"]+)' % rurl)) prevSearch = compile(tagre("a", "href", r'(%s[^"]+)' % rurl, after="navi-prev")) help = 'Index format: yyyy/mm/ddmmyyyy' class MenageA3(_BasicScraper): adult = True url = 'http://www.ma3comic.com/' stripUrl = url + 'strips-ma3/%s' imageSearch = compile(tagre("img", "src", r'([^"]*/comics/[^"]+)')) prevSearch = compile(tagre("a", "href", r'([^"]*/strips-ma3/[^"]+)', before="cn[id]prev")) help = 'Index format: name' class Melonpool(_BasicScraper): description = u"Star Trek Meets Gilligan's Island" url = 'http://www.melonpool.com/' rurl = escape(url) stripUrl = url + '?p=%s' firstStripUrl = stripUrl % '41' imageSearch = compile(tagre("img", "src", r'(%scomics/[^"]+)' % rurl)) prevSearch = compile(tagre("a", "href", r'(%s\?p=\d+)' % rurl, after="prev")) help = 'Index format: n' class Misfile(_BasicScraper): url = 'http://www.misfile.com/' stripUrl = url + '?date=%s' firstStripUrl = stripUrl % '2004-02-22' imageSearch = compile(tagre("img", "src", r"(comics/[^']+)", quote="'")) prevSearch = compile(tagre("link", "href", r"([^']+)", quote="'", before="Previous")) help = 'Index format: yyyy-mm-dd' class MyCartoons(_BasicScraper): url = 'http://mycartoons.de/' rurl = escape(url) stripUrl = url + 'page/%s' imageSearch = ( compile(tagre("img", "src", r'(%swp-content/cartoons/(?:[^"]+/)?\d+-\d+-\d+[^"]+)' % rurl)), compile(tagre("img", "src", r'(%scartoons/[^"]+/\d+-\d+-\d+[^"]+)' % rurl)), ) prevSearch = compile(tagre("a", "href", r'(%spage/[^"]+)' % rurl) + "«") help = 'Index format: number' lang = 'de' class MysteriesOfTheArcana(_BasicScraper): url = 'http://mysteriesofthearcana.com/' stripUrl = url + 'index.php?action=comics&cid=%s' firstStripUrl = stripUrl % '1' imageSearch = compile(tagre("img", "src", r'(image\.php\?type=com&i=[^"]+)')) prevSearch = compile(tagre("a", "href", r'(index\.php[^"]+)', after="navprevious")) help = 'Index format: n (unpadded)'