added comic Red's Planet

This commit is contained in:
Damjan Košir 2013-12-10 16:34:47 +13:00
parent 4f47792dee
commit 5982e27c7b

View file

@ -49,6 +49,15 @@ class RedMeat(_BasicScraper):
def namer(cls, imageUrl, pageUrl): def namer(cls, imageUrl, pageUrl):
return imageUrl.split('/')[-2] return imageUrl.split('/')[-2]
class RedsPlanet(_BasicScraper):
description = u"Red's Planet"
url = 'http://www.redsplanet.com/comic/'
rurl = escape(url)
stripUrl = url + 'rp/%s/'
firstStripUrl = stripUrl % 'pro/prologue-01'
imageSearch = compile(tagre("img", "src", r'(%scomics/\d+-\d+-\d+_[^"/]+)' % rurl))
prevSearch = compile(tagre("a", "href", r'(%srp/[^"/]+/[^"/]+/)' % rurl))
help = 'Index format: chapter/stripname'
class RedString(_BasicScraper): class RedString(_BasicScraper):
description = u'A web comics about love and growing up. Art by Gina Biggs.' description = u'A web comics about love and growing up. Art by Gina Biggs.'