Added Eat That Toast

This commit is contained in:
Peter B 2014-01-12 19:03:49 -05:00
parent 124cf99665
commit 740bcb72ce

11
dosagelib/plugins/e.py Normal file → Executable file
View file

@ -47,6 +47,17 @@ class EatLiver(_BasicScraper):
prevSearch = compile(tagre("a", "href", r'(i\.php\?n=\d+)') + "<< Previous")
class EatThatToast(_BasicScraper):
url = 'http://eatthattoast.com/'
rurl = escape(url)
stripUrl = url + 'comic/%s'
firstStripUrl = stripUrl % 'thewizard/'
imageSearch = compile(tagre("div", "id", r'comic') + "\s*.*\s*" + tagre("img", "src", r'(%swp-content/uploads/\d+/\d+/[^"]+)' % rurl))
prevSearch = compile(tagre("a", "href", r'(%s[^"]+)' % rurl, after='comic-nav-base comic-nav-previous'))
textSearch = compile(tagre("div", "id", r'comic') + "\s*.*\s*" + tagre("img", "alt", r'([^"]+)'))
help = 'Index Format: name'
class EdibleDirt(_BasicScraper):
description = u'Edible Dirt, by Matt Rosemier'
url = 'http://eddirt.frozenreality.co.uk/'