- Adapted ShermansLagoon
- Better version of OnTheFastTrack
This commit is contained in:
parent
c63f927e5c
commit
25cf4888ae
2 changed files with 8 additions and 7 deletions
|
@ -96,7 +96,7 @@ class OnTheFasttrack(_BasicScraper):
|
||||||
stripUrl = url + 'comics/%s'
|
stripUrl = url + 'comics/%s'
|
||||||
firstStripUrl = stripUrl % 'november-13-2000'
|
firstStripUrl = stripUrl % 'november-13-2000'
|
||||||
imageSearch = compile(tagre("img", "src", r'(http://safr\.kingfeatures\.com/idn/test/zone/xml/content\.php\?file=.+?)'))
|
imageSearch = compile(tagre("img", "src", r'(http://safr\.kingfeatures\.com/idn/test/zone/xml/content\.php\?file=.+?)'))
|
||||||
prevSearch = compile(r'<a href="(http://onthefastrack.com/comics/[a-z0-9-]+/)"(><Previous| rel="prev)')
|
prevSearch = compile(r'id="previouscomic" class="button white"><a href="(%scomics/[a-z0-9-]+/)"' % url)
|
||||||
description = u'On The Fasttrack by Bill Holbrook'
|
description = u'On The Fasttrack by Bill Holbrook'
|
||||||
help = 'Index format: monthname-dd-yyyy'
|
help = 'Index format: monthname-dd-yyyy'
|
||||||
|
|
||||||
|
|
13
dosagelib/plugins/s.py
Executable file → Normal file
13
dosagelib/plugins/s.py
Executable file → Normal file
|
@ -218,17 +218,18 @@ class Sheldon(_BasicScraper):
|
||||||
class ShermansLagoon(_BasicScraper):
|
class ShermansLagoon(_BasicScraper):
|
||||||
description = u"Sherman's Lagoon by Jim Toomey"
|
description = u"Sherman's Lagoon by Jim Toomey"
|
||||||
url = 'http://shermanslagoon.com/'
|
url = 'http://shermanslagoon.com/'
|
||||||
rurl = escape(url)
|
|
||||||
stripUrl = url + 'comics/%s'
|
stripUrl = url + 'comics/%s'
|
||||||
firstStripUrl = stripUrl % '/december-29-2003/'
|
firstStripUrl = stripUrl % '/december-29-2003/'
|
||||||
imageSearch = compile(tagre("img", "src", r'(http://safr\.kingfeatures\.com/idn/etv/zone/xml/content.php\?file=[^"]+)'))
|
imageSearch = compile(tagre("img", "src", r'(http://safr\.kingfeatures\.com/idn/test/zone/xml/content\.php\?file=.+?)'))
|
||||||
prevSearch = compile(tagre("a", "href", r'(%scomics/[^"]+/)' % rurl) + '« previous')
|
prevSearch = compile(r'id="previouscomic" class="button white"><a href="(%scomics/[a-z0-9-]+/)"' % url)
|
||||||
starter = bounceStarter(url,
|
help = 'Index format: monthname-day-year'
|
||||||
compile(tagre("a", "href", r'(%scomics/[^"]+/)' % rurl, after="next")))
|
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def namer(cls, imageUrl, pageUrl):
|
def namer(cls, imageUrl, pageUrl):
|
||||||
name = pageUrl.split('/')[-2]
|
name = pageUrl.rsplit('/', 3)[2]
|
||||||
|
if name == "shermanslagoon.com":
|
||||||
|
import datetime
|
||||||
|
name = datetime.date.today().strftime("%B-%d-%Y").lower()
|
||||||
# name is monthname-day-year
|
# name is monthname-day-year
|
||||||
month, day, year = name.split('-')
|
month, day, year = name.split('-')
|
||||||
return "%s-%s-%s" % (year, month, day)
|
return "%s-%s-%s" % (year, month, day)
|
||||||
|
|
Loading…
Reference in a new issue