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

« back to all changes in this revision

Viewing changes to dosage/plugins/h.py

  • Committer: Tristan Seligmann
  • Date: 2010-01-03 16:10:10 UTC
  • Revision ID: mithrandi@mithrandi.net-20100103161010-o85lwucvq9enrc3u
Add HorribleVille.

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
    imageSearch = compile(r'src="(http://www.hatesong.com/strips/.+?)"')
34
34
    prevSearch = compile(r'<div class="headernav"><a href="(http://hatesong.com/\d{1,4}/\d{1,2}/\d{1,2})')
35
35
    help = 'Index format: yyyy/mm/dd'
 
36
 
 
37
 
 
38
class HorribleVille(BasicScraper):
 
39
    latestUrl = 'http://horribleville.com/d/20090517.html'
 
40
    imageUrl = 'http://horribleville.com/d/%s.html'
 
41
    imageSearch = compile(r'src="(/comics/.+?)"')
 
42
    prevSearch = compile(r'(\d+\.html)"><img[^>]+?src="/images/previous_day.png"')
 
43
    help = 'Index format: yyyy/mm/dd'