dosage/dosagelib/plugins/h.py

23 lines
856 B
Python
Raw Normal View History

2012-11-21 20:57:26 +00:00
# Copyright (C) 2012 Bastian Kleineidam
2012-06-20 19:58:13 +00:00
2012-11-21 20:57:26 +00:00
from re import compile
2012-10-11 10:03:12 +00:00
from ..scraper import _BasicScraper
2012-11-21 20:57:26 +00:00
from ..util import tagre
2012-06-20 19:58:13 +00:00
class HorribleVille(_BasicScraper):
2012-11-21 20:57:26 +00:00
latestUrl = 'http://horribleville.com/'
stripUrl = latestUrl + 'd/%s.html'
imageSearch = compile(tagre("img", "src", r'(/comics/[^"]+)'))
prevSearch = compile(tagre("a", "href", r'(/d/[^"]+)') + tagre("img", "src", r'/images/previous\.png'))
help = 'Index format: yyyymmdd'
2012-06-20 19:58:13 +00:00
class HelpDesk(_BasicScraper):
2012-11-21 20:57:26 +00:00
latestUrl = 'https://www.eviscerati.org/comics?page=78'
stripUrl = 'https://www.eviscerati.org/comics?page=%s'
imageSearch = compile(tagre("img", "src", r'(https://www\.eviscerati\.org/files/comics/[^"]+)'))
prevSearch = compile(tagre("li", "class", r'pager-previous[^"]+') + tagre("a", "href", r'(/comics\?page=%d+)'))
help = 'Index format: n'
2012-06-20 19:58:13 +00:00