1
0
mirror of https://github.com/ilri/csv-metadata-quality.git synced 2024-11-25 07:10:17 +01:00

csv_metadata_quality/check.py: use HTTPS

Use HTTPS for AGROVOC REST API.
This commit is contained in:
Alan Orth 2023-10-15 22:38:45 +03:00
parent 4ed2786703
commit 93c9b739ac
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9

View File

@ -221,7 +221,7 @@ def agrovoc(field, field_name, drop):
# Try to split multi-value field on "||" separator # Try to split multi-value field on "||" separator
for value in field.split("||"): for value in field.split("||"):
request_url = "http://agrovoc.uniroma2.it/agrovoc/rest/v1/agrovoc/search" request_url = "https://agrovoc.uniroma2.it/agrovoc/rest/v1/agrovoc/search"
request_params = {"query": value} request_params = {"query": value}
request = requests.get(request_url, params=request_params) request = requests.get(request_url, params=request_params)