Skip to content

Commit

Permalink
refactoring getAsXMl to manage software
Browse files Browse the repository at this point in the history
  • Loading branch information
Mazztok45 committed Feb 8, 2024
1 parent a46d138 commit b86231a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/zbmath_rest2oai/getAsXml.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
import requests


def final_xml2(de):
def final_xml2(de, api_source):

headers = {'Accept': 'application/json'}

r = requests.get('https://api.zbmath.org/v1/document/' + de, headers=headers)
api_source='https://api.zbmath.org/v1/document/'
r = requests.get(api_source + de, headers=headers)
if r.status_code != 200:
raise Exception(f"Unexpected response with status code {r.status_code}: {r.text}")
json = r.json()
Expand Down

0 comments on commit b86231a

Please sign in to comment.