dosage/dosagelib/plugins/q.py

23 lines
765 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 QuestionableContent(_BasicScraper):
latestUrl = 'http://www.questionablecontent.net/'
stripUrl = latestUrl + 'view.php?comic=%s'
2012-06-20 19:58:13 +00:00
imageSearch = compile(r'/(comics/\d+\.png)"')
prevSearch = compile(r'<a href="(view.php\?comic=\d+)">Previous')
help = 'Index format: n (unpadded)'
class Qwantz(_BasicScraper):
latestUrl = 'http://www.qwantz.com/index.php'
stripUrl = latestUrl + '?comic=%s'
2012-06-20 19:58:13 +00:00
imageSearch = compile(r'<img src="(http://www.qwantz.com/comics/.+?)" class="comic"')
prevSearch = compile(r'"><a href="(.+?)">&larr; previous</a>')
help = 'Index format: n'