Closed pavelbrn closed 1 year ago
Hey, thanks very much for investigating! I suspect the polite thing to do would be to set a user agent that includes the library name and version number. I'll try to release a new version of the client with that change soon.
I have been getting a brand new rate limit error from the GDELT API, even though I wasn't putting in a large amount of requests. I decided to check if the same request would work through my browser and it did.
Here is a small patch for the
api_client.py
script. I added this to line 150 indef _query()
. It turns out the API now needs a user agents before returning any data(at least on my end). The following changes fixed my issue:Perhaps an option to add a "User-Agent" would be useful for a future version?
Awesome project by the way!