dosage/dosagelib/plugins/m.py

111 lines
3.9 KiB
Python
Raw Normal View History

# -*- coding: iso-8859-1 -*-
# Copyright (C) 2004-2005 Tristan Seligmann and Jonathan Jacobs
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
from ..helpers import queryNamer
2012-06-20 19:58:13 +00:00
class MadamAndEve(_BasicScraper):
latestUrl = 'http://www.madamandeve.co.za/week_of_cartns.php'
2012-11-13 18:10:19 +00:00
stripUrl = 'http://www.madamandeve.co.za/week_of_cartns.php'
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)"')
help = 'Index format: (none)'
class MagicHigh(_BasicScraper):
latestUrl = 'http://www.doomnstuff.com/magichigh/index.php'
2012-11-13 18:10:19 +00:00
stripUrl = 'http://www.doomnstuff.com/magichigh/index.php?strip_id=%s'
2012-06-20 19:58:13 +00:00
imageSearch = compile(r'(istrip_files/strips/.+?)"')
prevSearch = compile(r'First .+?"(/magichigh.+?)".+?top_back')
help = 'Index format: n'
class Marilith(_BasicScraper):
latestUrl = 'http://www.marilith.com/'
2012-11-13 18:10:19 +00:00
stripUrl = 'http://www.marilith.com/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):
latestUrl = 'http://marrymemovie.com/main/'
2012-11-13 18:10:19 +00:00
stripUrl = 'http://marrymemovie.com/main/%s'
2012-06-20 19:58:13 +00:00
imageSearch = compile(r'(/comicfolder/.+?)"')
prevSearch = compile(r'Previous Comic:</small><br />&#171; <a href="(.+?)">')
help = 'Index format: good luck !'
class Meek(_BasicScraper):
latestUrl = 'http://www.meekcomic.com/'
2012-11-13 18:10:19 +00:00
stripUrl = 'http://www.meekcomic.com/%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):
latestUrl = 'http://www.megatokyo.com/'
2012-11-13 18:10:19 +00:00
stripUrl = 'http://www.megatokyo.com/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 MyPrivateLittleHell(_BasicScraper):
latestUrl = 'http://mutt.purrsia.com/mplh/'
2012-11-13 18:10:19 +00:00
stripUrl = 'http://mutt.purrsia.com/mplh/?date=%s'
2012-06-20 19:58:13 +00:00
imageSearch = compile(r'<img.+?src="(comics/.+?)"')
prevSearch = compile(r'<a.+?href="(\?date=\d+/\d+/\d+)">Prev</a>')
help = 'Index format: mm/dd/yyyy'
class MacHall(_BasicScraper):
latestUrl = 'http://www.machall.com/'
2012-11-13 18:10:19 +00:00
stripUrl = 'http://www.machall.com/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'
class Misfile(_BasicScraper):
latestUrl = 'http://www.misfile.com/'
2012-11-13 18:10:19 +00:00
stripUrl = 'http://www.misfile.com/?page=%s'
2012-06-20 19:58:13 +00:00
imageSearch = compile(r'<img src="(overlay\.php\?pageCalled=\d+)">')
prevSearch = compile(r'<a href="(\?page=\d+)"><img src="/images/back\.gif"')
help = 'Index format: n (unpadded)'
namer = queryNamer('pageCalled')
class MysteriesOfTheArcana(_BasicScraper):
latestUrl = 'http://mysteriesofthearcana.com/'
2012-11-13 18:10:19 +00:00
stripUrl = 'http://mysteriesofthearcana.com/index.php?action=comics&cid='
2012-06-20 19:58:13 +00:00
imageSearch = compile(r'(image.php\?type=com&i=.+?)"')
prevSearch = compile(r'(index.php\?action=comics&cid=.+?)".+?show_prev1')
help = 'Index format: n (unpadded)'
class MysticRevolution(_BasicScraper):
latestUrl = 'http://www.mysticrev.com/index.php'
2012-11-13 18:10:19 +00:00
stripUrl = 'http://www.mysticrev.com/index.php?cid=%s'
2012-06-20 19:58:13 +00:00
imageSearch = compile(r'(comics/.+?)"')
prevSearch = compile(r'(\?cid=.+?)".+?prev.gif')
help = 'Index format: n (unpadded)'
class MontyAndWooly(_BasicScraper):
latestUrl = 'http://www.montyandwoolley.co.uk/'
2012-11-13 18:10:19 +00:00
stripUrl = 'http://montyandwoolley.co.uk/%s'
2012-06-20 19:58:13 +00:00
imageSearch = compile(r'<img src="(http://montyandwoolley.co.uk/.+?)"')
prevSearch = compile(r'<div class="nav-previous"><a href="(.+?)">')
help = 'Index format: yyyy/mm/dd/strip-name'