From 05a497fa8a2a0852aba9bff1a2d3540ec9bfb1d8 Mon Sep 17 00:00:00 2001 From: Tobias Gruetzmacher Date: Sat, 20 Mar 2021 00:52:28 +0100 Subject: [PATCH] Throttle GrrlPower (fixes #179) --- dosagelib/plugins/g.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dosagelib/plugins/g.py b/dosagelib/plugins/g.py index 0a96aeef2..da53e9615 100644 --- a/dosagelib/plugins/g.py +++ b/dosagelib/plugins/g.py @@ -1,7 +1,7 @@ # SPDX-License-Identifier: MIT # Copyright (C) 2004-2008 Tristan Seligmann and Jonathan Jacobs # Copyright (C) 2012-2014 Bastian Kleineidam -# Copyright (C) 2015-2020 Tobias Gruetzmacher +# Copyright (C) 2015-2021 Tobias Gruetzmacher # Copyright (C) 2019-2020 Daniel Ring from re import compile, escape @@ -140,6 +140,10 @@ class GrrlPower(_WordPressScraper): stripUrl = url + 'archives/comic/%s/' firstStripUrl = stripUrl % 'gp0001' + def __init__(self, name): + super().__init__(name) + self.session.add_throttle('grrlpowercomic.com', 1.0, 1.5) + class Guardia(_ParserScraper): url = 'https://ssp-comics.com/comics/Guardia/'