Merge pull request #53 from Lugoues/upstream

Added Poorly Drawn lines replacing GoComic's version. Added Eat That Toast.
This commit is contained in:
wummel 2014-01-13 11:02:27 -08:00
commit eb5ce1c009
3 changed files with 23 additions and 1 deletions

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/'

2
dosagelib/plugins/gocomics.py Normal file → Executable file
View file

@ -394,7 +394,7 @@ add('PlentyofPenguins', '/plenty-of-penguins')
add('Pluggers', '/pluggers')
add('PoliceLimit', '/policelimit')
add('PoochCafe', '/poochcafe')
add('PoorlyDrawnLines', '/poorly-drawn-lines')
#add('PoorlyDrawnLines', '/poorly-drawn-lines')
add('PreTeena', '/preteena')
add('PricklyCity', '/pricklycity')
add('Putz', '/putz')

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

@ -195,6 +195,17 @@ class PokeyThePenguin(_BasicScraper):
return "%s/index%d.html" % (prefix, num)
class PoorlyDrawnLines(_BasicScraper):
url = 'http://poorlydrawnlines.com/comic/'
rurl = escape(url)
stripUrl = url + '%s'
firstStripUrl = stripUrl % 'campus-characters/'
imageSearch = compile(tagre("img", "src", r'(http://poorlydrawnlines\.com/wp-content/uploads/\d+/\d+/[^"]+)'))
prevSearch = compile(tagre("li", "class", r'previous') + tagre("a", "href", r'(%s[^"]+)' % rurl))
help = 'Index Format: name'
description = u'A thrice-weekly webcomic written and illustrated by Reza Farazmand. New comics every Monday, Wednesday, and Friday.'
class Precocious(_BasicScraper):
url = 'http://www.precociouscomic.com/'
starter = indirectStarter(url,