dosage/dosagelib/plugins/z.py

21 lines
661 B
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
2012-10-11 10:03:12 +00:00
from ..scraper import _BasicScraper
2012-06-20 19:58:13 +00:00
class Zapiro(_BasicScraper):
latestUrl = 'http://www.mg.co.za/zapiro/all'
imageSearch = compile(r'<img src="(cartoons/[^"]+)"')
prevSearch = compile(r'<a href="([^"]+)">&gt;')
class ZombieHunters(_BasicScraper):
latestUrl = 'http://www.thezombiehunters.com/'
imageUrl = 'http://www.thezombiehunters.com/index.php?strip_id=%s'
imageSearch = compile(r'"(.+?strips/.+?)"')
prevSearch = compile(r'</a><a href="(.+?)"><img id="prevcomic" ')
help = 'Index format: n(unpadded)'