From 44d2198c34aa9ad4f376664ae459ad971c1dda6a Mon Sep 17 00:00:00 2001 From: Techwolf Date: Sat, 13 Jul 2019 23:31:24 -0700 Subject: [PATCH] Add AmbersNoBrainers --- dosagelib/plugins/a.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/dosagelib/plugins/a.py b/dosagelib/plugins/a.py index dfde84615..247031bad 100644 --- a/dosagelib/plugins/a.py +++ b/dosagelib/plugins/a.py @@ -279,6 +279,21 @@ class AmazingSuperPowers(_BasicScraper): ) +class AmbersNoBrainers(_ParserScraper): + baseUrl = 'https://foxyverse.com/' + url = baseUrl + 'comics/' + stripUrl = baseUrl + 'ambers-no-brainers-%s/' + firstStripUrl = stripUrl % '1' + imageSearch = '//img[contains(@src, "Page")]' + latestSearch = '//a[contains(@href, "ambers-no-brainers")]' + starter = indirectStarter + + def getPrevUrl(self, url, data): + # Replace missing navigation links + pageNum = int(url.rstrip('/').rsplit('-', 1)[-1]) + return self.stripUrl % str(pageNum - 1) + + class Amya(_WordPressScraper): url = 'http://www.amyachronicles.com/'