fixed OctopusPie
This commit is contained in:
parent
3bbf2d5c23
commit
962286d391
1 changed files with 3 additions and 6 deletions
|
@ -8,16 +8,13 @@ from ..helpers import indirectStarter
|
|||
from ..util import tagre
|
||||
|
||||
|
||||
class OctopusPie(_BasicScraper):
|
||||
class OctopusPie(_ParserScraper):
|
||||
url = 'http://www.octopuspie.com/'
|
||||
rurl = escape(url)
|
||||
starter = indirectStarter(url,
|
||||
compile(tagre("a", "href", r'(%s[^"]+)' % rurl) +
|
||||
tagre("img", "src", r'%sjunk/latest\.png' % rurl)))
|
||||
stripUrl = url + '%s/'
|
||||
firstStripUrl = stripUrl % '2007-05-14/001-pea-wiggle'
|
||||
imageSearch = compile(tagre("img", "src", r'(%sstrippy/[^"]+)' % rurl))
|
||||
prevSearch = compile(tagre("a", "href", r'(%s[^"]+)' % rurl, after="prev"))
|
||||
imageSearch = '//img[@title]'
|
||||
prevSearch = '//a[@rel="prev"]'
|
||||
help = 'Index format: yyyy-mm-dd/nnn-strip-name'
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue