summaryrefslogtreecommitdiff
path: root/s2.py
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2018-11-06 16:52:21 +0100
committerJules Laplace <julescarbon@gmail.com>2018-11-06 16:52:21 +0100
commitffa32666f9a7a4a80c5725f67a8191c9c79ed01f (patch)
treea74ae03842efe210501ebc066340e1b268804d83 /s2.py
parent0c0deb93edfaf50dc82b8a9118a4c00bdae1f043 (diff)
doi fetch script
Diffstat (limited to 's2.py')
-rw-r--r--s2.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/s2.py b/s2.py
index 8add3205..d1ee05d1 100644
--- a/s2.py
+++ b/s2.py
@@ -151,7 +151,7 @@ class SemanticScholarAPI(object):
if chunk:
size += len(chunk)
f.write(chunk)
- return size, response.url
+ return size, resp.url
@staticmethod
def paper(paper_id, **kwargs):