From 95174dbba437bfb6e4aac79307f75d43c7890891 Mon Sep 17 00:00:00 2001 From: Andreas Date: Fri, 7 Jun 2019 20:51:51 +0200 Subject: [PATCH] Path fixes. --- webarchiv.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/webarchiv.py b/webarchiv.py index 0fb6bd1..2138d85 100644 --- a/webarchiv.py +++ b/webarchiv.py @@ -36,7 +36,7 @@ class WebarchivSession: with a single positional format string placeholder for the REST operation and parameters. """ - return 'https://webarchiv.onb.ac.at/api/' + return 'https://webarchiv.onb.ac.at/api' @property def base_url(self): @@ -45,7 +45,7 @@ class WebarchivSession: with a single positional format string placeholder for the REST operation and parameters. """ - return self.api_path + '/{}' + return self.api_path + '{}' @property def _error_template(self): @@ -80,7 +80,7 @@ class WebarchivSession: else: fingerprint = '' - r = requests.post(self.base_url.format('authentication'), + r = requests.post(self.base_url.format('/authentication'), data='''{{ "apikey": "{api_key}", "fingerprint": "{fingerprint}", -- GitLab