From 23a3e3b101955264c35f9c8270b358effb8bbddf Mon Sep 17 00:00:00 2001 From: Tobias Gruetzmacher Date: Wed, 30 Sep 2020 21:24:01 +0200 Subject: [PATCH] Switch WastedTalent to ParserScraper --- dosagelib/plugins/w.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/dosagelib/plugins/w.py b/dosagelib/plugins/w.py index ba15a83e9..3f8f80cf1 100644 --- a/dosagelib/plugins/w.py +++ b/dosagelib/plugins/w.py @@ -20,14 +20,13 @@ class WapsiSquare(_WPNaviIn): return data.xpath('//iframe') # videos -class WastedTalent(_BasicScraper): +class WastedTalent(_ParserScraper): url = 'http://www.wastedtalent.ca/' stripUrl = url + 'comic/%s' firstStripUrl = stripUrl % 'anime-crack' - imageSearch = compile(tagre("img", "src", r'(http://www\.wastedtalent\.ca/sites/default/files/imagecache/comic_full/comics/\d+/[^"]+)')) - prevSearch = compile(tagre("a", "href", r'(/comic/[^"]+)', - after="comic_prev")) - help = 'Index format: stripname' + imageSearch = '//div[d:class("comic_content")]/img' + prevSearch = '//li[d:class("previous")]/a' + multipleImagesPerStrip = True class WebcomicName(_ParserScraper):