Fix DoghouseDiaries

This commit is contained in:
Techwolf 2019-07-12 20:41:06 -07:00 committed by Tobias Gruetzmacher
parent fc280badb6
commit 5e79ff9d84

View file

@ -193,15 +193,20 @@ class DoemainOfOurOwn(_ParserScraper):
help = 'Index format: yyyy-mm-dd'
class DogHouseDiaries(_BasicScraper):
class DoghouseDiaries(_ParserScraper):
url = 'http://thedoghousediaries.com/'
rurl = escape(url)
stripUrl = url + '%s'
firstStripUrl = stripUrl % '34'
prevSearch = compile(r"<a id='previouslink' href='(http://thedoghousediaries.com/\d+)'")
imageSearch = compile(r"<img src='(dhdcomics/[^']+)'")
imageSearch = '//img[@class="imgcomic"]'
textSearch = imageSearch + '/@title'
prevSearch = '//a[@id="previouslink"]'
nextSearch = '//a[@id="nextlink"]'
starter = bounceStarter
help = 'Index format: number'
def namer(self, imageUrl, pageUrl):
return pageUrl.rsplit('/', 1)[-1] + '.' + imageUrl.rsplit('.', 1)[-1]
class DominicDeegan(_ParserScraper):
url = 'http://www.dominic-deegan.com/'