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

How many github tokens needed to not be throtelled? #79

Closed
marcelo321 opened this issue Jan 30, 2021 · 1 comment
Closed

How many github tokens needed to not be throtelled? #79

marcelo321 opened this issue Jan 30, 2021 · 1 comment

Comments

@marcelo321
Copy link

Hello,

I just wanted to know how many github tokens we need so we don't get rate-limited. Each token should have 5k requests and I assume shhgit iterates this tokens to not get rate-limited?

@eth0izzle
Copy link
Owner

Hey @marcelo321 it's a good question. You should be fine with one token using the defaults. Shhgit uses 1 token for the /events API hit every 30 seconds. It then hits the API again for each repository it needs to process to lookup the organisation, stargazers count, and repository size. ~40 - 60% of events are usually processed so you could estimate ~51 tokens every minute or ~3060/hour.

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