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

Youtube API Rate Limiting #16

Open
liamerven opened this issue Sep 4, 2021 · 1 comment
Open

Youtube API Rate Limiting #16

liamerven opened this issue Sep 4, 2021 · 1 comment

Comments

@liamerven
Copy link

Youtube has instituted a 10000 query a day limit. is there some way to optimize the library to possibly spend these units slower? I recently tested this on a live stream, and used my quota in under an hour. Any thoughts and suggestions are welcome.

@bigsby-exe
Copy link

This is a super messy way but I modified ytchat.py and changed all instances of time.sleep(other_data['pollingIntervalMillis'] / 1000) to time.sleep(60.1)
It's not great at all but slows down the ammout of times the program polls YT for new chat messages and get's me under 10,000 calls per day now.

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