From f5b7b067b7eb87f64669eeaa5f0445763c48c7fd Mon Sep 17 00:00:00 2001 From: Techwolf Date: Thu, 13 Jun 2019 20:07:19 -0700 Subject: [PATCH] Switch AGirlAndHerFed to parser scraper --- dosagelib/plugins/a.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dosagelib/plugins/a.py b/dosagelib/plugins/a.py index 4e6888827..d2a229867 100644 --- a/dosagelib/plugins/a.py +++ b/dosagelib/plugins/a.py @@ -76,12 +76,12 @@ class AfterStrife(_WPNavi): endOfLife = True -class AGirlAndHerFed(_BasicScraper): - url = 'http://www.agirlandherfed.com/' +class AGirlAndHerFed(_ParserScraper): + url = 'https://agirlandherfed.com/' stripUrl = url + '1.%s.html' firstStripUrl = stripUrl % '1' - imageSearch = compile(tagre("img", "src", r'(img/strip/[^"]+\.jpg)')) - prevSearch = compile(r'[^>]+Back') + imageSearch = '//div[@id="comic-image"]/img' + prevSearch = '//div[@id="comic-nav"]/a[.//img[contains(@src, "back")]]' help = 'Index format: nnn'