This tool allow to fetch emails from a Github profile list 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
usernames
array with the GitHub usernames you want to retrieve emails for. Also, be aware of GitHub's terms of service and privacy policies when accessing user data through the GitHub API. -
On your ternminal, rune the following command:
node fetch-emails.js
The script will create a github_emails.json
file at the root with the emails found for each user.
Result example:
// github_emails.json
{
"user1": "user1@gmail.com",
"user2": "user2@gmail.com",
"user3": "user3@gmail.com",
}
Notes
-
The script can take a few minutes depending on the number of users you want to retrieve emails for.
-
If you recover too many emails, github will refuse your next requests. I recommend limiting a file to 1000 emails
-
If you repeat the command, the
github_emails.json
file will overwrite the previous one.