aboutsummaryrefslogtreecommitdiffstats
path: root/python/sandcrawler
diff options
context:
space:
mode:
Diffstat (limited to 'python/sandcrawler')
-rw-r--r--python/sandcrawler/__init__.py1
-rw-r--r--python/sandcrawler/ia.py2
2 files changed, 2 insertions, 1 deletions
diff --git a/python/sandcrawler/__init__.py b/python/sandcrawler/__init__.py
index 6718c57..469c2a2 100644
--- a/python/sandcrawler/__init__.py
+++ b/python/sandcrawler/__init__.py
@@ -7,6 +7,7 @@ from .ia import (
CdxRow,
PetaboxError,
ResourceResult,
+ SavePageNowBackoffError,
SavePageNowClient,
SavePageNowError,
WarcResource,
diff --git a/python/sandcrawler/ia.py b/python/sandcrawler/ia.py
index 9c727ce..7365383 100644
--- a/python/sandcrawler/ia.py
+++ b/python/sandcrawler/ia.py
@@ -1012,7 +1012,7 @@ class SavePageNowClient:
break
# check if SPNv2 user has capacity available
- resp = self.v2_session.get("https://web.archive.org/save/status/user")
+ resp = self.v2_session.get(f"{self.v2endpoint}/status/user")
if resp.status_code == 429:
raise SavePageNowBackoffError(
f"SPNv2 availability API status_code: {resp.status_code}"