2020-04-18 11:45:44 +00:00
|
|
|
# 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
|
2020-01-13 06:34:05 +00:00
|
|
|
# Copyright (C) 2015-2020 Tobias Gruetzmacher
|
|
|
|
# Copyright (C) 2019-2020 Daniel Ring
|
2019-10-18 07:49:55 +00:00
|
|
|
from .common import _WordPressScraper, _WPWebcomic
|
2016-04-01 22:14:31 +00:00
|
|
|
|
|
|
|
|
|
|
|
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
|
|
|
|
2019-10-18 07:49:55 +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'
|