From bdbcb7e8fe208c5b36d25087a1a3a6b07e7c2a22 Mon Sep 17 00:00:00 2001 From: Mazztok45 Date: Wed, 13 Nov 2024 13:19:09 +0100 Subject: [PATCH] modifying restAPi_software_json to run --- src/zbmath_rest2oai/restApi_software_Json.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/zbmath_rest2oai/restApi_software_Json.py b/src/zbmath_rest2oai/restApi_software_Json.py index 721cac2..fb74576 100644 --- a/src/zbmath_rest2oai/restApi_software_Json.py +++ b/src/zbmath_rest2oai/restApi_software_Json.py @@ -68,8 +68,8 @@ def process_metadata(output_log_filename, csv_file_path, api_url, output_path=No print(f"Failed to retrieve data. Status code: {response.status_code}") -#csv_file_path = '../../test/data/software/swh_swmath.csv' # Path to your CSV file -#api_url = 'https://api.zbmath.org/v1/software/825' # API URL, can be generalized for any software ID -#output_path = '../../test/data/software/software_with_swhid.json' -#output_log_filename = '../../test/data/software/logfile.txt' -#process_metadata(csv_file_path, api_url, output_path) +csv_file_path = '../../test/data/software/swh_swmath_swhid_dir.csv' # Path to your CSV file +api_url = 'https://api.zbmath.org/v1/software/8779' # API URL, can be generalized for any software ID +output_path = '../../test/data/software/software_with_swhid3.json' +output_log_filename = '../../test/data/software/logfile.txt' +process_metadata(output_log_filename, csv_file_path, api_url, output_path)