From bd44fdbb79be35a68cf7fe5a48073ba7f6830e15 Mon Sep 17 00:00:00 2001 From: Tobias Gruetzmacher Date: Fri, 31 Jul 2020 19:28:25 +0200 Subject: [PATCH] Fix SequentialArt (closes #167) --- dosagelib/plugins/s.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/dosagelib/plugins/s.py b/dosagelib/plugins/s.py index 61d4846c5..485881b82 100644 --- a/dosagelib/plugins/s.py +++ b/dosagelib/plugins/s.py @@ -155,13 +155,12 @@ class SeelPeel(_WPNaviIn): multipleImagesPerStrip = True -class SequentialArt(_BasicScraper): - url = 'http://www.collectedcurios.com/sequentialart.php' +class SequentialArt(_ParserScraper): + url = 'https://www.collectedcurios.com/sequentialart.php' stripUrl = url + '?s=%s' firstStripUrl = stripUrl % '1' - imageSearch = compile(tagre("img", "src", r'([^"]+)', before="strip")) - prevSearch = compile(tagre("a", "href", r'(/sequentialart\.php\?s=\d+)') + - tagre("img", "src", r'Nav_BackOne\.gif')) + imageSearch = '//img[{}]'.format(xpath_class('w3-image')) + prevSearch = '//a[@id="backOne"]' help = 'Index format: name'