obheda12 / GitDorker

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

Secondary rate limit error #44

Open darkdevil9293 opened 2 years ago

darkdevil9293 commented 2 years ago

gitdorker-error

Already similar kind of one issue #19 is there and it is closed. But the solution given in the issue was increase the no. of personal tokens, but i have already done that. I first run the command (python3 GitDorker.py -d Dorks/akeyless-dorks.txt -q akeyless.io -tf tf/TOKENSFILE -o akeyless-output.txt) with 2 tokens, it showed me the same error and then i run the command with four tokens, then also i got the same error. And the token is placed in a text file as per your guidelines only(i.e., without spaces and without newlines). I dont know what is the issue here. Pls help...

gelosecurity commented 2 years ago

it's recommended that each token has a unique account, and try to limit the amount of requests you're sending

I was able to fix this issue by limiting the requests, modifying line 179:

           if stats_dict['n_current'] % 5 == 0: