~dosage-dev/dosage/test-mode

« back to all changes in this revision

Viewing changes to dosage/plugins/q.py

  • Committer: ns
  • Date: 2009-12-01 06:51:37 UTC
  • Revision ID: ns@ww1aviationlinks.cjb.net-20091201065137-3ha9wvawwvpqaaj4
repairs for OctopusPie and OddFish

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
from re import compile
2
 
 
3
 
from dosage.helpers import BasicScraper
4
 
 
5
 
 
6
 
class QuestionableContent(BasicScraper):
7
 
    latestUrl = 'http://www.questionablecontent.net/'
8
 
    imageUrl = 'http://www.questionablecontent.net/view.php?comic=%s'
9
 
    imageSearch = compile(r'<img src="((?:http://www\.questionablecontent\.net|\.{1,2})/comics/\d+\.png)"')
10
 
    prevSearch = compile(r'<a href="(view.php\?comic=\d+)">Previous')
11
 
    help = 'Index format: n (unpadded)'
12
 
 
13
 
 
14
 
class Qwantz(BasicScraper):
15
 
    latestUrl = 'http://www.qwantz.com/'
16
 
    imageUrl = 'http://www.qwantz.com/index.pl?comic=%s'
17
 
    imageSearch = compile(r'"(http://www.qwantz.com/comics/.+?)"')
18
 
    prevSearch = compile(r'(/archive/.+?)">previous')
19
 
    help = 'Index format: n'