dosage/dosagelib/plugins/y.py

24 lines
734 B
Python
Raw Normal View History

# SPDX-License-Identifier: MIT
2016-10-28 22:21:41 +00:00
# Copyright (C) 2004-2008 Tristan Seligmann and Jonathan Jacobs
2014-01-05 15:50:57 +00:00
# Copyright (C) 2012-2014 Bastian Kleineidam
2022-05-28 15:52:42 +00:00
# Copyright (C) 2015-2022 Tobias Gruetzmacher
# Copyright (C) 2019-2020 Daniel Ring
from .common import _WordPressScraper, _WPWebcomic
class YAFGC(_WordPressScraper):
2021-08-14 15:17:38 +00:00
baseUrl = 'https://www.yafgc.net/'
url = baseUrl + '?latest'
stripUrl = baseUrl + 'comic/%s'
firstStripUrl = stripUrl % 'bob-meets-gren'
2019-08-27 07:54:52 +00:00
2021-08-14 15:17:38 +00:00
def __init__(self, name):
super().__init__(name)
self.session.add_throttle('www.yafgc.net', 3.0, 15.5)
2019-08-27 07:54:52 +00:00
2022-05-28 15:52:42 +00:00
class YoshSaga(_WPWebcomic):
2019-08-27 07:54:52 +00:00
url = 'https://www.yoshsaga.com/'
stripUrl = url + 'comic/%s/'
firstStripUrl = stripUrl % 'introduction'