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

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

Open
auk5 opened this issue Jul 15, 2022 · 1 comment
Open

Comments

@auk5
Copy link

auk5 commented Jul 15, 2022

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!

@hamuraiisam
Copy link

Find the line r = requests.get(url)

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

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