Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Seems to be broken #168

Open
lnilya opened this issue Feb 11, 2025 · 1 comment
Open

Seems to be broken #168

lnilya opened this issue Feb 11, 2025 · 1 comment

Comments

@lnilya
Copy link

lnilya commented Feb 11, 2025

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?

@mtholder
Copy link
Member

Hi. We have not used this script in a while. I have not kept up with the global names API. You might get some clues at https://resolver.globalnames.org/api about how to fix this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants