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

Debug pour test.

parent c32ed35a
No related branches found
No related tags found
No related merge requests found
...@@ -29,13 +29,6 @@ import requests, json ...@@ -29,13 +29,6 @@ import requests, json
print("\n\nRunning zenodo.py") print("\n\nRunning zenodo.py")
with open("personnal-keys.json") as f :
## load zenodo keys for requests the API
ACCESS_TOKEN = json.load(f)["ZENODO_KEY"]
def req_zenodo_with_page(uga_perimeter, record_type, page_nb) : def req_zenodo_with_page(uga_perimeter, record_type, page_nb) :
""" """
retourne les jeux de données UGA depuis Zenodo retourne les jeux de données UGA depuis Zenodo
...@@ -51,7 +44,6 @@ def req_zenodo_with_page(uga_perimeter, record_type, page_nb) : ...@@ -51,7 +44,6 @@ def req_zenodo_with_page(uga_perimeter, record_type, page_nb) :
"size" : 100, "size" : 100,
"sort" : "mostrecent", "sort" : "mostrecent",
"all_version" : False, "all_version" : False,
"access_tpoken" : ACCESS_TOKEN
} }
) )
# for debugging # for debugging
......
...@@ -61,7 +61,7 @@ if temp_rows : ...@@ -61,7 +61,7 @@ if temp_rows :
# write the number of dois found in a file to display on the website # write the number of dois found in a file to display on the website
with open("nb-dois.txt", 'w') as f : with open("nb-dois.txt", 'w') as f :
f.write(str(len(df_out))) f.write(str(len(df_out)))
## output another csv with datacite client and number of datasets ## output another csv with datacite client and number of datasets
df_client_raw = df_out["client"].value_counts().to_frame() df_client_raw = df_out["client"].value_counts().to_frame()
...@@ -81,6 +81,7 @@ if temp_rows : ...@@ -81,6 +81,7 @@ if temp_rows :
df_client_raw["name"] = client_names df_client_raw["name"] = client_names
df_client_raw["year"] = client_years df_client_raw["year"] = client_years
df_client_raw["url"] = client_urls df_client_raw["url"] = client_urls
print("df_client_raw cree")
df_client_raw.to_csv("all_datacite_clients_for_uga.csv") df_client_raw.to_csv("all_datacite_clients_for_uga.csv")
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