Skip to content
Snippets Groups Projects
Commit d436e535 authored by Elias Chetouane's avatar Elias Chetouane
Browse files

Version fonctionnelle pour l'ajout d'infos sur les clients datacite.

parent 008af182
No related merge requests found
Pipeline #173225 passed
...@@ -68,7 +68,7 @@ if temp_rows : ...@@ -68,7 +68,7 @@ if temp_rows :
client_urls = [] client_urls = []
for i in range(0, len(df_client_raw)): for i in range(0, len(df_client_raw)):
client = df_client_raw.iloc[i].name client = df_client_raw.iloc[i].name
req = requests.get('https://api.datacite.org/clients?query=id:%22'+str(client)'%22') req = requests.get('https://api.datacite.org/clients?query=id:%22'+str(client)+'%22')
client_names.append(req.json()["data"][0]["attributes"]["name"]) client_names.append(req.json()["data"][0]["attributes"]["name"])
client_years.append(req.json()["data"][0]["attributes"]["year"]) client_years.append(req.json()["data"][0]["attributes"]["year"])
client_urls.append(req.json()["data"][0]["attributes"]["url"]) client_urls.append(req.json()["data"][0]["attributes"]["url"])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment