aboutsummaryrefslogtreecommitdiffstats
path: root/check_issn_urls.py
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2021-11-30 14:22:15 -0800
committerBryan Newbold <bnewbold@archive.org>2021-11-30 14:22:15 -0800
commit2cf76354dabacdb54e4101cc5df13c6b9ccade70 (patch)
treed4dbb60ce4baf46edb06efe5edd7413f3fee27e9 /check_issn_urls.py
parent55539e94edc9a49fca1dafdd9468966abd33fe10 (diff)
downloadchocula-2cf76354dabacdb54e4101cc5df13c6b9ccade70.tar.gz
chocula-2cf76354dabacdb54e4101cc5df13c6b9ccade70.zip
make fmt
Diffstat (limited to 'check_issn_urls.py')
-rwxr-xr-xcheck_issn_urls.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/check_issn_urls.py b/check_issn_urls.py
index b00609f..cea7c81 100755
--- a/check_issn_urls.py
+++ b/check_issn_urls.py
@@ -120,6 +120,7 @@ def check_gwb(url, match_type="exact"):
else:
return None
+
HOST_SKIP_LIST = [
"www.jstor.org",
"www.tandfonline.com",
@@ -133,6 +134,7 @@ HOST_SKIP_LIST = [
"catalog.hathitrust.org",
]
+
def check_url(issnl, url):
# print("Fetching: %s" % url)
info = dict(issnl=issnl, url=url)
@@ -140,7 +142,7 @@ def check_url(issnl, url):
info["error"] = "bad-url"
info["terminal_status_code"] = -1
return info
- if not url.startswith('http'):
+ if not url.startswith("http"):
info["error"] = "url-not-http"
info["terminal_status_code"] = -1
return info