Update s.py

Added Sherman's Lagoon, namer is not perfect.
This commit is contained in:
mbrandis 2013-06-23 23:30:57 +03:00
parent cfc456e760
commit 3b0393ccf6

View file

@ -563,3 +563,19 @@ class SupernormalStep(_BasicScraper):
imageSearch = compile(tagre("img", "src", r'(%scomics/[^"]+)' % rurl))
prevSearch = compile(tagre("a", "href", r'(%s\?p=\d+)' % rurl, after="prev"))
help = 'Index format: number'
class ShermansLagoon(_BasicScraper):
description = u"Sherman's Lagoon"
url = 'http://shermanslagoon.com/'
stripUrl = url + 'comics/%s'
firstStripUrl = stripUrl % '/december-29-2003/'
imageSearch = compile(r'<img src="(http://safr.kingfeatures.com/idn/etv/zone/xml/content.php\?file=.+?)" />')
prevSearch = compile(r'<a href="(http://shermanslagoon.com/comics/.+?/)" rel="prev"')
description = u'by Jim Toomey'
@classmethod
def namer(cls, imageUrl, pageUrl):
import datetime
mylist = []
mylist.append(datetime.date.today())
return "%s" % mylist[0]