Switch WastedTalent to ParserScraper

This commit is contained in:
Tobias Gruetzmacher 2020-09-30 21:24:01 +02:00
parent dfa412c03e
commit 23a3e3b101

View file

@ -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):