make everyone command isn't working for me
I keep getting these errors when I try to make everybody command.
% Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 549k 100 549k 0 0 435k 0 0:00:01 0:00:01 --:--:-- 436k ./follow-everybody.bash: line 11: jq: command not found ./follow-everybody.bash: line 20: jq: command not found
Had to brew install jq and that fixed that error but now I'm getting this one:
jq: error (at <stdin>:1): Cannot index string with string "full_name"
same sequence of problems happened to me too. its not a problem with jq, but a problem with the curl command that is ran previously. (tbh i dont really know what it means).
output from curl https://api.github.com/repos/diracdeltas/tweets/forks?per_page=100&page=$page_num > ur_mom:
l{"message":"API rate limit exceeded for %my ip address lol% . (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)","documentation_url":"https://docs.github.com/rest/overview/resources-in-the-rest-api#rate-limiting"}
Yea, I figured it out I was being rate limited because the make command keeps hitting the forks endpoint to try and pull all of the forks. Was able to fix it by using a VPN.
@GandalfPotter If you have a VPN try using that and then re-running the make command, otherwise you may just have to wait a while, (I think an hour judging by their docs) for GitHub to reset your limit so you can request the forks endpoint again. So if you don't have a VPN wait an hour and then re-run the make everybody command
ok that clears things up, thx!
Create personal token https://github.com/settings/tokens?type=beta
Add header with token to follow script.
-H "Authorization: token YOUR_TOKEN_HERE"
Like this:
results=$(curl -H "Accept: application/vnd.github+json" -H "Authorization: token YOUR_TOKEN_HERE" "https://api.github.com/repos/diracdeltas/tweets/forks?per_page=100&page=$page_num")