From 50f8441e9b061d34394c34efb1ba142a5cd1febb Mon Sep 17 00:00:00 2001 From: Techwolf Date: Fri, 6 Mar 2020 18:06:30 -0800 Subject: [PATCH] Add FriendsYouAreStuckWith --- dosagelib/plugins/f.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/dosagelib/plugins/f.py b/dosagelib/plugins/f.py index ca9a372c9..b8de5cbc8 100644 --- a/dosagelib/plugins/f.py +++ b/dosagelib/plugins/f.py @@ -207,6 +207,17 @@ class FreighterTails(_ParserScraper): endOfLife = True +class FriendsYouAreStuckWith(_WordPressScraper): + url = 'http://friendsyasw.com/' + stripUrl = url + 'comic/%s/' + firstStripUrl = stripUrl % 'wanted' + + def namer(self, imageUrl, pageUrl): + page = self.getPage(pageUrl) + strip = page.xpath('//div[@id="comic-wrap"]/@class')[0].replace('comic-id-', '') + return strip + '_' + imageUrl.rstrip('/').rsplit('/', 1)[-1] + + class FullFrontalNerdity(_BasicScraper): url = 'http://ffn.nodwick.com/' rurl = escape(url)