Switch WastedTalent to ParserScraper
This commit is contained in:
parent
dfa412c03e
commit
23a3e3b101
1 changed files with 4 additions and 5 deletions
|
@ -20,14 +20,13 @@ class WapsiSquare(_WPNaviIn):
|
||||||
return data.xpath('//iframe') # videos
|
return data.xpath('//iframe') # videos
|
||||||
|
|
||||||
|
|
||||||
class WastedTalent(_BasicScraper):
|
class WastedTalent(_ParserScraper):
|
||||||
url = 'http://www.wastedtalent.ca/'
|
url = 'http://www.wastedtalent.ca/'
|
||||||
stripUrl = url + 'comic/%s'
|
stripUrl = url + 'comic/%s'
|
||||||
firstStripUrl = stripUrl % 'anime-crack'
|
firstStripUrl = stripUrl % 'anime-crack'
|
||||||
imageSearch = compile(tagre("img", "src", r'(http://www\.wastedtalent\.ca/sites/default/files/imagecache/comic_full/comics/\d+/[^"]+)'))
|
imageSearch = '//div[d:class("comic_content")]/img'
|
||||||
prevSearch = compile(tagre("a", "href", r'(/comic/[^"]+)',
|
prevSearch = '//li[d:class("previous")]/a'
|
||||||
after="comic_prev"))
|
multipleImagesPerStrip = True
|
||||||
help = 'Index format: stripname'
|
|
||||||
|
|
||||||
|
|
||||||
class WebcomicName(_ParserScraper):
|
class WebcomicName(_ParserScraper):
|
||||||
|
|
Loading…
Reference in a new issue