~dosage-dev/dosage/test-mode

« back to all changes in this revision

Viewing changes to dosage/plugins/y.py

  • Committer: ns
  • Date: 2009-12-01 06:48:56 UTC
  • Revision ID: ns@ww1aviationlinks.cjb.net-20091201064856-zpr3kzovttos7lns
M plugin added MagicHigh MysteriesOfTheArcana and MysticRevolution

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 YouSayItFirst(BasicScraper):
7
 
    latestUrl = 'http://www.yousayitfirst.com/'
8
 
    imageUrl = 'http://www.soapylemon.com/comics/index.php?date=%s'
9
 
    imageSearch = compile(r'(http://.+?comics/.+?.jpg)[^<]')
10
 
    prevSearch = compile(r'(/comics/index.php\?date=.+?)".+?P')
11
 
    help = 'Index format: yyyymmdd'
12
 
 
13
 
 
14
 
class Yirmumah(BasicScraper):
15
 
    latestUrl = 'http://yirmumah.net/archives.php'
16
 
    imageUrl = 'http://yirmumah.net/archives.php?date=%s'
17
 
    imageSearch = compile(r'<img src="(strips/\d{8}\..*?)"')
18
 
    prevSearch = compile(r'<a href="(\?date=\d{8})">.*Previous')
19
 
    help = 'Index format: yyyymmdd'