Skip to content

Enhancement idea: configurable user agent #29

@goekce

Description

@goekce

I often experience the following warning:

WARNING: Could not fetch Wikipedia data for ....: Expecting value: line 1 column 1 (char 0) [tippy.wiki] [tippy.wiki]

This happens because the output of requests.get(...) cannot be parsed by the json() method. In my case, this was due to a 403 (Forbidden). Maybe the API server has a rate limit for specific user-agents. Setting the user-agent helped.

It would be great if the user agent could be configured in conf.py.

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