Add FriendsYouAreStuckWith

This commit is contained in:
Techwolf 2020-03-06 18:06:30 -08:00 committed by Tobias Gruetzmacher
parent 8887b7b794
commit 50f8441e9b

View file

@ -207,6 +207,17 @@ class FreighterTails(_ParserScraper):
endOfLife = True 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): class FullFrontalNerdity(_BasicScraper):
url = 'http://ffn.nodwick.com/' url = 'http://ffn.nodwick.com/'
rurl = escape(url) rurl = escape(url)