obheda12 / GitDorker

A Python program to scrape secrets from GitHub through usage of a large repository of dorks.
2.26k stars 417 forks source link

rate limit error :( #40

Open VGJeyasurya opened 2 years ago

VGJeyasurya commented 2 years ago

python3 GitDorker.py -q teslamotors.com -d Dorks/medium_dorks.txt -tf tf/TOKENSFILE

When I try to run the above command I get the rate limit error as shown below even though I'm using two unique git tokens. Please help me to resolve this issue. MicrosoftTeams-image (6)

MannSingh99999 commented 2 years ago

same

israsec commented 2 years ago

What I did to fix this is just change the requests_per_minute on line 129 of the python file, down to your desired limit. I found that 4 or 5 per minute with 5 API keys worked ok and only a few requests were blocked. If you put it down to 2 or 3 then it should be even better.

1979139113 commented 2 years ago

i have read the github api rate limit doc, its true that you can request 30 times in a minute, but in fact, you will get a rate limit while request 2-5 times, i dont know why.

spookhorror commented 2 years ago

Same issue , what should I do any solution ?