Skip to content

Commit

Permalink
api uni inde
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanhb committed Sep 8, 2023
1 parent f07781a commit 4501ec5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion indexapi_v1.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def get_omid_of_doi(s):
api = "https://test.opencitations.net/meta/api/v1/metadata/doi:%s"
try:
r = get(api % s,
headers={"User-Agent": "INDEX REST API (via OpenCitation>
headers={"User-Agent": "INDEX REST API (via OpenCitations - http://opencitations.net; mailto:[email protected])"}, timeout=60)
if r.status_code == 200:
json_res = loads(r.text)
if len(json_res) > 0:
Expand Down

0 comments on commit 4501ec5

Please sign in to comment.