]> Nutra Git (v2) - gamesguru/getmyancestors.git/commitdiff
increase rate limit from 5 to 8 requests/second rate-limit
authorShane <30691680+gamesguru@users.noreply.github.com>
Tue, 9 Sep 2025 14:10:16 +0000 (10:10 -0400)
committerShane <30691680+gamesguru@users.noreply.github.com>
Tue, 9 Sep 2025 14:10:16 +0000 (10:10 -0400)
getmyancestors/classes/session.py

index 61e2aaad67216ef400e59062eb3d6b81ff8830c1..317dcf0f028c35f6090c7ca72a7259fc711c5544 100644 (file)
@@ -46,8 +46,8 @@ class Session(requests.Session):
         self.counter = 0
         self.headers = {"User-Agent": UserAgent().firefox}
 
-        # Apply a rate-limit (5 requests per second) to all requests
-        adapter = LimiterAdapter(per_second=5)
+        # Apply a rate-limit (max # requests per second) to all endpoints
+        adapter = LimiterAdapter(per_second=8)
         self.mount('http://', adapter)
         self.mount('https://', adapter)