-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
HEy,
I try to run the script but it always gets a 404 warning during the API request.
while trycounter < 10:
try:
r = requests.post('http://resolver.globalnames.org/name_resolvers.json',
json = {'names':full_name, #searching for genus + species first to avoid homonyms
'best_match_only':'false'})
break
except ConnectionError as err:
trycounter += 1
sys.stderr.write(err + '\n' + 'Trying again')
else:
'More than 10 failed connection attempts, skipping.'
return None
Any ideas if it is still usable?
Metadata
Metadata
Assignees
Labels
No labels