Add Bethellium

This commit is contained in:
Techwolf 2019-06-29 15:06:46 -07:00 committed by Tobias Gruetzmacher
parent 085e1642fb
commit ae0b702107

View file

@ -84,6 +84,23 @@ class Beetlebum(_BasicScraper):
return name return name
class Bethellium(_ParserScraper):
stripUrl = 'http://dbcomics.darkblueworkshop.com/bethellium/%s/'
firstStripUrl = stripUrl % 'chapter-1/webcomic-bethellium-chapter-1-cover'
url = firstStripUrl
imageSearch = '//div[@class="webcomic-image"]//img'
prevSearch = '//a[contains(@class, "previous-webcomic-link")]'
latestSearch = '//a[contains(@class, "last-webcomic-link")]'
starter = indirectStarter
def namer(self, imageUrl, pageUrl):
# Prepend chapter title to page filenames
chapter = pageUrl.rstrip('/').rsplit('/', 3)[-2]
chapter = chapter.replace('chapter-1', 'chapter-1-the-magic-city')
page = imageUrl.rsplit('/', 1)[-1]
return chapter + '_' + page
class BetterDays(_ParserScraper): class BetterDays(_ParserScraper):
url = 'http://jaynaylor.com/betterdays/' url = 'http://jaynaylor.com/betterdays/'
stripUrl = url + 'archives/%s.html' stripUrl = url + 'archives/%s.html'