Added Poorly Drawn lines replacing GoComic's version.

This commit is contained in:
Peter B 2014-01-11 01:25:22 -05:00
parent a023323736
commit 124cf99665
2 changed files with 12 additions and 1 deletions

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,