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

« back to all changes in this revision

Viewing changes to dosage/plugins/g.py

  • Committer: ns
  • Date: 2009-12-01 07:07:18 UTC
  • Revision ID: ns@ww1aviationlinks.cjb.net-20091201070718-3xoj70sz52zsq09v
Y plugin added YAFGC

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 Galaxion(BasicScraper):
7
 
    latestUrl = 'http://galaxioncomics.com/'
8
 
    imageUrl = 'http://galaxioncomics.com/?p=%s'
9
 
    imageSearch = compile(r'(wordpress/comics/.+?)"')
10
 
    prevSearch = compile(r'\| <a href="http://galaxioncomics.com/(\?p=.+?)".+?vious.gif')
11
 
    help = 'Index format: non'
12
 
 
13
 
 
14
 
class Garanos(BasicScraper):
15
 
    latestUrl = 'http://www.garanos.com/'
16
 
    imageUrl = 'http://www.garanos.com/pages/page-%s'
17
 
    imageSearch = compile(r'<img src=.+?(/pages/.+?)"')
18
 
    prevSearch = compile(r'<a href="(http://www.garanos.com/pages/page-.../)">&#9668; Previous<')
19
 
    help = 'Index format: n  (unpadded)'
20
 
 
21
 
 
22
 
class GUComics(BasicScraper):
23
 
    latestUrl = 'http://www.gucomics.com/comic/'
24
 
    imageUrl = 'http://www.gucomics.com/comic/?cdate=%s'
25
 
    imageSearch = compile(r'<IMG src="(/comics/\d{4}/gu_.*?)"')
26
 
    prevSearch = compile(r'<A href="(/comic/\?cdate=\d+)"><IMG src="/images/cnav_prev')
27
 
    help = 'Index format: yyyymmdd'
28
 
 
29
 
 
30
 
class GenrezvousPoint(BasicScraper):
31
 
    latestUrl = 'http://www.iccomics.com/chapters/genrezvouspoint/index.php?id=120'
32
 
    imageUrl = 'http://www.iccomics.com/chapters/genrezvouspoint/index.php?id=%s'
33
 
    imageSearch = compile(r'src="(.*?gp-comics/.*?)"')
34
 
    prevSearch = compile(r'</a><a href="(.+?index.php\?id=.*?)".*?navbar_03')
35
 
    help = 'Index format: n (unpadded)'
36
 
 
37
 
 
38
 
class GirlGenius(BasicScraper):
39
 
    latestUrl = 'http://girlgeniusonline.com/comic.php'
40
 
    imageUrl = 'http://www.girlgeniusonline.com/comic.php\?date=%s'
41
 
    imageSearch = compile(r"(/ggmain/strips/.+?)'")
42
 
    prevSearch = compile(r"</a> <a href=.+?(/comic.php\?date=.+?)'.+?Previous")
43
 
    help = 'Index format: yyyymmdd'
44
 
 
45
 
 
46
 
class GirlsWithSlingshots(BasicScraper):
47
 
    latestUrl = 'http://www.daniellecorsetto.com/gws.html'
48
 
    imageUrl = 'http://www.daniellecorsetto.com/GWS%s.html'
49
 
    imageSearch = compile(r'<img src="(images/gws/GWS\d{3}.jpg)"')
50
 
    prevSearch = compile(r'<a href="(GWS\d{3}.html)" onMouseOver="imgOn\(\'img2\'\)"')
51
 
    help = 'Index format: nnn'
52
 
 
53
 
 
54
 
class Girly(BasicScraper):
55
 
    latestUrl = 'http://go-girly.com/'
56
 
    imageUrl = 'http://go-girly.com/go/%s'
57
 
    imageSearch = compile(r'"(http://comics.go-girly.com/.*?)"')
58
 
    prevSearch = compile(r"<a href=\'(/go/.*?)\'.+?nav_girly_prev.gif")
59
 
    help = 'Index format: nnn'
60
 
 
61
 
 
62
 
class GlueMeat(BasicScraper):
63
 
    latestUrl = 'http://www.gluemeat.com/'
64
 
    imageUrl = 'http://www.gluemeat.com/archives/%s.html'
65
 
    imageSearch = compile(r'<img.+?src="(http://www.gluemeat.com/comics/\d{8}\..+?)"')
66
 
    prevSearch = compile(r'(?:<a|<link rel="prev") href="(http://www.gluemeat.com/archives/\d{6}\.html)"(?!>Comment on this comic)(?:.+?</a> \]</font>)?')
67
 
    help = 'Index format: nnnnnn'
68
 
 
69
 
 
70
 
class Goats(BasicScraper):
71
 
    latestUrl = 'http://www.goats.com/'
72
 
    imageUrl = 'http://www.goats.com/archive/%s.html'
73
 
    imageSearch = compile(r'<img.+?src="(/comix/.+?)"')
74
 
    prevSearch = compile(r'<a href="(/archive/\d{6}.html)" class="button" title="go back">')
75
 
    help = 'Index format: yymmdd'
76
 
 
77
 
 
78
 
class GoneWithTheBlastwave(BasicScraper):
79
 
    latestUrl = 'http://www.blastwavecomic.com/'
80
 
    imageUrl = 'http://www.blastwavecomic.com/index.php?strip_id=%s'
81
 
    imageSearch = compile(r'<img.+?src="(istrip_files/strips/\d{8}\..+?)"')
82
 
    prevSearch = compile(r'<a href="/(index.php\?strip_id=\d+)"><img src="images/previous.jpg"')
83
 
    help = 'Index format: n'
84
 
 
85
 
 
86
 
class GunnerkrigCourt(BasicScraper):                                                                     
87
 
    latestUrl = 'http://www.gunnerkrigg.com/index2.php'
88
 
    imageUrl = 'http://www.gunnerkrigg.com/archive_page.php\?comicID=%s'
89
 
    imageSearch = compile(r'<img src="(.+?//comics/.+?)"')
90
 
    prevSearch = compile(r'<.+?(/archive_page.php\?comicID=.+?)".+?prev')
91
 
    help = 'Index format: n'