2012-06-20 20:41:04 +00:00
|
|
|
# -*- coding: iso-8859-1 -*-
|
|
|
|
# Copyright (C) 2004-2005 Tristan Seligmann and Jonathan Jacobs
|
2012-11-21 20:57:26 +00:00
|
|
|
# Copyright (C) 2012 Bastian Kleineidam
|
|
|
|
|
2012-06-20 19:58:13 +00:00
|
|
|
from re import compile, IGNORECASE
|
|
|
|
|
2012-10-11 10:03:12 +00:00
|
|
|
from ..scraper import _BasicScraper
|
2012-11-20 17:53:53 +00:00
|
|
|
from ..util import tagre
|
2012-06-20 19:58:13 +00:00
|
|
|
|
|
|
|
|
2012-11-21 20:57:26 +00:00
|
|
|
# broken links - disable for now
|
|
|
|
class _MadamAndEve(_BasicScraper):
|
2012-06-20 19:58:13 +00:00
|
|
|
latestUrl = 'http://www.madamandeve.co.za/week_of_cartns.php'
|
2012-11-20 17:53:53 +00:00
|
|
|
stripUrl = None
|
2012-06-20 19:58:13 +00:00
|
|
|
imageSearch = compile(r'<IMG BORDER="0" SRC="(cartoons/me\d{6}\.(gif|jpg))">')
|
|
|
|
prevSearch = compile(r'<a href="(weekend_cartoon.php)"')
|
|
|
|
|
|
|
|
|
|
|
|
class Marilith(_BasicScraper):
|
|
|
|
latestUrl = 'http://www.marilith.com/'
|
2012-11-20 17:53:53 +00:00
|
|
|
stripUrl = latestUrl + 'archive.php?date=%s'
|
2012-06-20 19:58:13 +00:00
|
|
|
imageSearch = compile(r'<img src="(comics/.+?)" border')
|
|
|
|
prevSearch = compile(r'<a href="(archive\.php\?date=.+?)"><img border=0 name=previous_day')
|
|
|
|
help = 'Index format: yyyymmdd'
|
|
|
|
|
|
|
|
|
|
|
|
class MarryMe(_BasicScraper):
|
2012-11-21 20:57:26 +00:00
|
|
|
latestUrl = 'http://marryme.keenspot.com/'
|
|
|
|
stripUrl = latestUrl + 'd/%s.html'
|
|
|
|
imageSearch = compile(tagre("img", "src", r'(/comics/[^"]+)'))
|
|
|
|
prevSearch = compile(tagre("link", "href", r'(/d/[^"]+)', before="prev"))
|
|
|
|
help = 'Index format: yyyymmdd'
|
2012-06-20 19:58:13 +00:00
|
|
|
|
|
|
|
|
|
|
|
class Meek(_BasicScraper):
|
|
|
|
latestUrl = 'http://www.meekcomic.com/'
|
2012-11-20 17:53:53 +00:00
|
|
|
stripUrl = latestUrl + '%s'
|
2012-06-20 19:58:13 +00:00
|
|
|
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):
|
2012-11-21 20:57:26 +00:00
|
|
|
latestUrl = 'http://megatokyo.com/'
|
2012-11-20 17:53:53 +00:00
|
|
|
stripUrl = latestUrl + 'strip/%s'
|
2012-06-20 19:58:13 +00:00
|
|
|
imageSearch = compile(r'"(strips/.+?)"', IGNORECASE)
|
|
|
|
prevSearch = compile(r'"(./strip/\d+?)">Prev')
|
|
|
|
help = 'Index format: nnnn'
|
|
|
|
|
|
|
|
|
|
|
|
class MacHall(_BasicScraper):
|
|
|
|
latestUrl = 'http://www.machall.com/'
|
2012-11-20 17:53:53 +00:00
|
|
|
stripUrl = latestUrl + 'view.php?date=%s'
|
2012-06-20 19:58:13 +00:00
|
|
|
imageSearch = compile(r'<img src="(comics/.+?)"')
|
|
|
|
prevSearch = compile(r'<a href="(.+?)"><img[^>]+?src=\'drop_shadow/previous.gif\'>')
|
|
|
|
help = 'Index format: yyyy-mm-dd'
|
|
|
|
|
|
|
|
|
2012-11-20 17:53:53 +00:00
|
|
|
class Melonpool(_BasicScraper):
|
|
|
|
latestUrl = 'http://www.melonpool.com/'
|
2012-11-21 20:57:26 +00:00
|
|
|
stripUrl = latestUrl + '?p=%s'
|
|
|
|
imageSearch = compile(tagre("img", "src", r'(http://www\.melonpool\.com/comics/[^"]+)'))
|
|
|
|
prevSearch = compile(tagre("a", "href", r'(http://www\.melonpool\.com/\?p=\d+)', after="prev"))
|
|
|
|
help = 'Index format: n'
|
2012-11-20 17:53:53 +00:00
|
|
|
|
2012-06-20 19:58:13 +00:00
|
|
|
|
|
|
|
class Misfile(_BasicScraper):
|
|
|
|
latestUrl = 'http://www.misfile.com/'
|
2012-11-21 20:57:26 +00:00
|
|
|
stripUrl = latestUrl + '?date=%s'
|
|
|
|
imageSearch = compile(tagre("img", "src", r'(comics/[^"]+)'))
|
|
|
|
prevSearch = compile(tagre("link", "href", r'([^"]+)', before="Previous"))
|
|
|
|
help = 'Index format: yyyy-mm-dd'
|
2012-06-20 19:58:13 +00:00
|
|
|
|
|
|
|
|
|
|
|
class MysteriesOfTheArcana(_BasicScraper):
|
|
|
|
latestUrl = 'http://mysteriesofthearcana.com/'
|
2012-11-21 20:57:26 +00:00
|
|
|
stripUrl = latestUrl + 'index.php?action=comics&cid=%s'
|
|
|
|
imageSearch = compile(tagre("img", "src", r'(image\.php\?type=com&i=[^"]+)'))
|
|
|
|
prevSearch = compile(tagre("a", "href", r'()', after="navprevius"))
|
2012-06-20 19:58:13 +00:00
|
|
|
help = 'Index format: n (unpadded)'
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-11-21 20:57:26 +00:00
|
|
|
# XXX move to keenspot?
|
2012-06-20 19:58:13 +00:00
|
|
|
class MysticRevolution(_BasicScraper):
|
2012-11-21 20:57:26 +00:00
|
|
|
latestUrl = 'http://mysticrevolution.keenspot.com/'
|
2012-11-20 17:53:53 +00:00
|
|
|
stripUrl = latestUrl + '?cid=%s'
|
2012-11-21 20:57:26 +00:00
|
|
|
imageSearch = compile(tagre("img", "src", r'(http://cdn\.mysticrevolution\.keenspot\.com/comics/[^"]+)'))
|
|
|
|
prevSearch = compile(tagre("link", "rel", r'(\?cid=\d+)', before="prev"))
|
2012-06-20 19:58:13 +00:00
|
|
|
help = 'Index format: n (unpadded)'
|