======================
Node script using Rapportive API. Based on the user name and domain, script searches correct email address.
brew install node
git clone git@github.com:krystiangw/raportive_api_plugin.git
cd raportive_plugin
npm install
There are two ways
Set valid raportive token.
/token?set=OAPtKYT2186sU2lg5bZvts5kjwtla5Fh-Qfi
You can than check token
/token
Search emails with params:
firstName
lastName
domain
Example:
/profile?firstName=john&lastName=smith&domain=gmail.com
Be sure to set env TOKEN variable. TOKEN is auth token returned by Raportive API. Example:
TOKEN="l6s6U8oXPzfHn4zXtIiZcYoq6Dm3bK9SQ1g_" node raportive_plugin.js
As input it accepts csv file with three column: firstName, lastName and domain. Raw input file example:
firstName,lastName,domain,
jan, koper, gmail.com,
john, smith, gmail.com,
Script generate list of likely email addresses, verify it and return the correct email addresses. Generated list for: jan, koper, gmail.com,
'jan@gmail.com',
'koper@gmail.com',
'jankoper@gmail.com',
'jan.koper@gmail.com',
'jan-koper@gmail.com',
'j.koper@gmail.com',
'jkoper@gmail.com',
'jank@gmail.com',
'koperjan@gmail.com',
'koper.jan@gmail.com',
'koper-jan@gmail.com',
'k.jan@gmail.com',
'kjan@gmail.com',
'koperj@gmail.com'
You can set input file path as argument. By default path is './input.csv'
INPUT="my_file.csv" TOKEN="l6s6U8oXPzfHn4zXtIiZcYoq6Dm3bK9SQ1g_" node raportive_plugin.js
You can set output file path as argument. By default path is './output.csv'
OUTPUT="my_file.csv" TOKEN="l6s6U8oXPzfHn4zXtIiZcYoq6Dm3bK9SQ1g_" node raportive_plugin.js
Sample response. Raw csv file:
"email","first-name","last-name","headline"
"jankoper@gmail.io","jan","koper","Attended Politechnika Krakowska im. Tadeusza Kościuszki""email","first-name","last-name","headline"
"johnsmith@gmail.com","John","Smith","Branch Manager at some big company"
v":0
}