A Ruby Gem to find someone's possible email address using their first name, last name, and domain.
Install the gem:
$ gem install possible_email
Command Line Interface
Enter target's first name, last name, and possible domain name into the terminal using
$ possible_email search first_name last_name domain
Not sure about the domain name? Just add multiple domains at the end
$ possible_email search first_name last_name gmail.com, yahoo.com, live.com
Just want to Confirm a single email address? Use
$ possible_email find_profile firstname.lastname@example.org
Multiple email address? Same
$ possible_email find_profile email@example.com firstname.lastname@example.org
require 'possible_email' profiles = .('Kevin', 'Rose', 'gmail.com') profiles #=> "#<PossibleEmail::Response>" first_profile = profiles.first first_profile.name #=> 'Kevin Rose' first_profile.email #=> 'email@example.com' first_profile.location #=> 'San Francisco Bay Area'
search(first_name, last_name, *domain)
Accepts three arguments
domain. PossibleEmail will use these three arguments to generate possible email addresses based on common email address patterns. PossibleEmail would then attempt to verify and return an email profile for each email address.
# Single domain name .('bob', 'jones', 'gmail.com') # Multiple domain names as Strings .('bob', 'jones', 'gmail.com', 'yahoo.com') # Multiple domain names as an Array domains = ['gmail.com', 'yahoo.com', 'live.com'] .('bob', 'jones', domains)
Accepts a list of email address string arguments or an array. Instead of generating email addresses based on name arguments, PossibleEmail would attempt to verify and return an email profile for each email addresses passed into the method.
# Comma-splitted email arguments .('firstname.lastname@example.org', 'email@example.com') # Array of emails .(['firstname.lastname@example.org', 'email@example.com'])
Both methods return a
PossibleEmail::Response includes the
Enumerable module, so all the methods you need to iterate through the profiles are available. The only exception when neither the
find_profile is when there is only one profile within the response. In this case, the method returns the single Profile.
Class for the associated data connnected with a specific email address.
Profile attribute list:
name- Full name
first_name- First name
last_name- Last name
friendly_name- First name or named used to address this person
headline- Short blurb about person
success- Type of response returned back from Rapportive API
occupations- Array of Occupation objects
memberships- Array of social network Membership objects
images- Array of Image objects
Class for person's jobs.
Occupation attribute list:
job_title- Job title
Class for Social Network Accounts
Membership attribute list:
profile_url- URL to person's website membership
profile_id- Website profile ID
site_name- Name of the website membership
Class for images associated with email profile.
Image attribute list:
url- Image url
service- Where the image is located
url_proxied- Rapportive image proxied URL
- With great power, comes great responsibly
- Wrapper around the undocumented Rapportive API.
- Valid results may be hidden due to API's limitations
- Send Bitcoin
- Fork it ( http://github.com/the4dpatrick/possible-email )
- Create your feature branch (
git checkout -b my-new-feature)
- Commit your changes (
git commit -am 'Add some feature')
- Push to the branch (
git push origin my-new-feature)
- Create new Pull Request