Skip to content

Seems to be broken #168

@lnilya

Description

@lnilya

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions