Skip to content

PatriceParis/GitHub-Email-Scraper

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

This is a quick ruby script to get public emails of contributors, watchers, stargazers, and forkers of all repos for a user/organization. Please use responsibly and respect those who wish to opt out of your email communications.

Developed using ruby 2.1, however should run successfully with similar versions of ruby.

Gems required: Github_API

Usage:

Before using the script, change USERNAME and PASSWORD in login.rb to a set of valid github login credentials for authentication. This allows for 5000 API calls per hour as opposed to the default 60, which will not be enough due to the branching nature of this script.

This script takes a user or organization as a command line argument and an optional 0 or 1 to indicate whether output is printed or written to a local .txt. No second argument or a 0 will print, and a 1 will write to csv.

Printed output:

ruby scraper.rb myorganization
ruby scraper.rb myorganization 0

Output to file:

ruby scraper.rb myorganization 1

About

A quick ruby script to get the public emails of people who have shown interest in a github project or user. Please use responsibly.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published