- Stargazers gives list of people that have starred a repo and those who have recently un-starred.
- It uses Github API to fetch Stargazers of any repo.
- Then stores it into a
db.jsonfile. - When compared again it gives name and number of people that have recently un-starred and starred the inputted repo.
- Get your
Github Developer Tokenand follow the steps there to generate your Token key - In a file named
tokens.jspaste the token. - Open terminal and do the following :
cd Rotten-Scripts\JavaScript\Stargazers- Run
npm installto install all necessary dependencies - Run
node Stargazers.jsand Voila! you are ready to go 😉
Hi I'm Madhav Jha author of this script.
It is true that github api is freely available for use by public but it is restricted to 60 requests per hour and for repos with large number of stargazers this will exceed it's limit. So do get your Github Developer Token before running this script
