~dosage-dev/dosage/test-mode

« back to all changes in this revision

Viewing changes to dosage/plugins/v.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, IGNORECASE
 
2
 
 
3
from dosage.helpers import BasicScraper
 
4
 
 
5
class VGCats(BasicScraper):
 
6
    latestUrl = 'http://www.vgcats.com/comics/'
 
7
    imageUrl = 'http://www.vgcats.com/comics/?strip_id=%s'
 
8
    imageSearch = compile(r'<img src="(images/\d{6}\..+?)"')
 
9
    prevSearch = compile(r'<a href="(\?strip_id=\d+)"><img src="back.gif" border="0"')
 
10
    help = 'Index format: n (unpadded)'
 
11
 
 
12
 
 
13
class ViiviJaWagner(BasicScraper):
 
14
    latestUrl = 'http://www.hs.fi/viivijawagner/'
 
15
    imageUrl = 'http://www.hs.fi/viivijawagner/%s'
 
16
    imageSearch = compile(r'<img src="(/kuvat/iso_webkuva/\d+\.gif)" align="center" BORDER="0" ALT="" TITLE="">', IGNORECASE)
 
17
    prevSearch = compile(r'<a href="(/viivijawagner/\d+)" class="pro85"><img src="http://www\.hs\.fi/static/hs/img/viivitaakse\.gif" width="60" height="56" border="0" alt="edellinen" title="edellinen">EDELLINEN</a>', IGNORECASE)