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
|
2012-10-11 10:03:12 +00:00
|
|
|
from ..scraper import _BasicScraper
|
2012-11-26 06:13:32 +00:00
|
|
|
from ..util import tagre
|
|
|
|
from ..helpers import bounceStarter
|
2012-06-20 19:58:13 +00:00
|
|
|
|
|
|
|
|
|
|
|
class Zapiro(_BasicScraper):
|
2012-11-26 06:13:32 +00:00
|
|
|
baseUrl = 'http://www.mg.co.za/zapiro/'
|
|
|
|
starter = bounceStarter(baseUrl,
|
|
|
|
compile(tagre("a", "href", r'(http://mg\.co\.za/cartoon/[^"]+)')+"Newer"))
|
|
|
|
stripUrl = 'http://mg.co.za/cartoon/%s'
|
|
|
|
imageSearch = compile(tagre("img", "src", r'(http://cdn\.mg\.co\.za/crop/content/cartoons/[^"]+)'))
|
|
|
|
prevSearch = compile(tagre("a", "href", r'(http://mg\.co\.za/cartoon/[^"]+)')+"Older")
|
|
|
|
help = 'Index format: yyyy-mm-dd-stripname'
|
2012-06-20 19:58:13 +00:00
|
|
|
|
|
|
|
|
|
|
|
class ZombieHunters(_BasicScraper):
|
|
|
|
latestUrl = 'http://www.thezombiehunters.com/'
|
2012-11-26 06:13:32 +00:00
|
|
|
stripUrl = latestUrl + '?strip_id=%s'
|
|
|
|
imageSearch = compile(tagre("img", "src", r'(/istrip_files/strips/[^"]+)'))
|
|
|
|
prevSearch = compile(tagre("a", "href", r'(\?strip_id=\d+)') + tagre("img", "id", "prevcomic"))
|
2012-06-20 19:58:13 +00:00
|
|
|
help = 'Index format: n(unpadded)'
|