opensky2cot icon indicating copy to clipboard operation
opensky2cot copied to clipboard

Error Response 429 - Too many requests error due to new API limitations.

Open auk5 opened this issue 3 years ago • 1 comments

The OpenSky API used for this project now has new limitations (https://openskynetwork.github.io/opensky-api/rest.html#limitations).

Specifically only 100 API requests for anonymous users. Could you add in how to implement a username and password please? This way you can get 1000 API calls in a day, meaning an update every 90 seconds which is acceptable.

Thanks!

auk5 avatar Jul 15 '22 09:07 auk5

Find the line r = requests.get(url)

and replace with r = requests.get(url, auth=("youropenskyusername", "password"))

hamuraiisam avatar Mar 04 '23 13:03 hamuraiisam