dosage/dosagelib/plugins/y.py

23 lines
733 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
# Copyright (C) 2015-2020 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
class YoshSaga(_WPWebcomic):
2019-08-27 07:54:52 +00:00
url = 'https://www.yoshsaga.com/'
stripUrl = url + 'comic/%s/'
firstStripUrl = stripUrl % 'introduction'