From f7886636cce9fcfca210dfff90e99e0a54c80ad5 Mon Sep 17 00:00:00 2001 From: Techwolf Date: Sat, 13 Jul 2019 00:17:57 -0700 Subject: [PATCH] Add SpaceFurries --- dosagelib/plugins/s.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/dosagelib/plugins/s.py b/dosagelib/plugins/s.py index 404ca601d..318f5b79d 100644 --- a/dosagelib/plugins/s.py +++ b/dosagelib/plugins/s.py @@ -369,6 +369,22 @@ class Sorcery101(_ParserScraper): help = 'Index format: stripname' +class SpaceFurries(_ParserScraper): + url = 'http://www.spacefurrs.org/' + firstStripUrl = url + multipleImagesPerStrip = True + adult = True + endOfLife = True + + def fetchUrls(self, url, data, urlSearch): + # Website requires JS, so build the list of image URLs manually + imageUrls = [] + currentPage = int(data.xpath('//input[@name="pagnum"]')[0].get('value')) + for page in reversed(range(1, currentPage + 1)): + imageUrls.append(self.url + 'comics/' + str(page) + '.jpg') + return imageUrls + + class SpaceJunkArlia(_ParserScraper): url = 'http://spacejunkarlia.com/' stripUrl = url + '?strip_id=%s'