dosage/dosagelib/plugins/krisstraub.py
Tobias Gruetzmacher 8e1e398a8d Deprecate underscore-prefixed parent classes
This is trying to strike a balance between updating as much existing
classes as possible, but not making the diff too big...
2022-06-06 12:08:32 +02:00

23 lines
689 B
Python

# SPDX-License-Identifier: MIT
# Copyright (C) 2021 Tobias Gruetzmacher
from .common import WordPressScraper
class KrisStraub(WordPressScraper):
prevSearch = '//a[text()="Previous"]'
endOfLife = True
help = 'Index format: yyyymmdd'
def __init__(self, name, firstDate):
super().__init__(name)
self.url = 'https://{}.krisstraub.com/'.format(name.lower())
self.stripUrl = self.url + '%s.shtml'
self.firstStripUrl = self.stripUrl % firstDate
@classmethod
def getmodules(cls):
return (
cls('BroodHollow', '20121006'),
cls('ChainsawSuit', '20080810'),
cls('Starslip', '20050523'),
)