~dosage-dev/dosage/bunch-of-comics

« back to all changes in this revision

Viewing changes to dosage/plugins/j.py

  • Committer: ns
  • Date: 2009-12-01 07:00:22 UTC
  • Revision ID: ns@ww1aviationlinks.cjb.net-20091201070022-qkhn13d7xsoi35eu
repair TheWhiteboard by removing indirectStarter

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 Jack(BasicScraper):
7
 
    latestUrl = 'http://www.pholph.com/'
8
 
    imageUrl = 'http://www.pholph.com/index.php?Strip=%s'
9
 
    imageSearch = compile(r'<img src="(strips/Jack\d{8}\..+?)"')
10
 
    prevSearch = compile(r'<a href="(index\.php\?Strip=\d+)">Previous Strip</a>')
11
 
    help = 'Index format: n (unpadded)'
12
 
 
13
 
 
14
 
class JerkCity(BasicScraper):
15
 
    latestUrl = 'http://www.jerkcity.com/'
16
 
    imageUrl = 'http://www.jerkcity.com/jerkcity%s'
17
 
    imageSearch = compile(r'"jerkcity.+?">.+?"(/jerkcity.+?)"')
18
 
    prevSearch = compile(r'"(jerkcity.+?)">.+?"/jerkcity.+?"')
19
 
    help = 'Index format: unknown'
20
 
 
21
 
 
22
 
class JoeAndMonkey(BasicScraper):
23
 
    latestUrl = 'http://www.joeandmonkey.com/'
24
 
    imageUrl = 'http://www.joeandmonkey.com/index.php?pageNum_Recordset2=%s'
25
 
    imageSearch = compile(r'"(comic/.+?)"')
26
 
    prevSearch = compile(r'"(/index.php\?.+?)">Previous')
27
 
    help = 'Index format: nnn'
28
 
 
29
 
 
30
 
class JoyOfTech(BasicScraper):
31
 
    latestUrl = 'http://www.geekculture.com/joyoftech/index.html'
32
 
    imageUrl = 'http://www.geekculture.com/joyoftech/joyarchives/%s.html'
33
 
    imageSearch = compile(r'<img src="((?:\.\./)?joyimages/.+?)" alt="The Joy of tech comic"')
34
 
    prevSearch = compile(r'<a href="((?:joyarchives/)?\d+\.html)">(?:<font[^>]*>)?<img[^>]*><br>[\s\n]*Previous Joy')
35
 
    help = 'Index format: nnn'