1
0
mirror of https://github.com/ilri/csv-metadata-quality.git synced 2025-08-12 07:48:07 +02:00

src: update AGROVOC REST API URL

This commit is contained in:
2025-08-10 20:40:02 +03:00
parent 22b2e3b8ae
commit d051841de0

View File

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