This tool allow to get github stargazer profils from a github repository using Github API.
- Node.js 18
- Axios running
npm install axios
-
Clone or download the repository
-
Make sure you replace `YOUR_GITHUB_TOKEN`` with your actual GitHub personal access token
-
Update the
https://github.com/user/repo
url by a repo URL. -
On your ternminal, rune the following command:
node stargazers.js
The script will create a stargazers.json
file at the root with the emails found for each user.
Result example:
// stargazers.json
[
"username1",
"username2",
"username3"
]
Notes
-
The script can take a few minutes depending on the number of users you want to retrieve emails for.
-
API Github limits the number of requests to 5000 per hour per token.
-
If you repeat the command, the
stargazers.json
file will overwrite the previous one.
Once you get the list, you can use fetch-emails to get emails from the list of users.