Use this to separate large CSV files containing leads into separate lead lists.
NOTE: The leads in the CSV should have one if not all of the the following column names: phone_number
, country
, personal_email
, email
, linkedin_url
, organization_twitter_url
, organization_facebook_url
,
The ouput will be a series of lead lists in the same folder where the index.js
is executed in with the following names:
- Phone Number:
{CSV file name} - phoneNumbers-list
- Emails:
{CSV file name} - emails-list
- LinkedIn:
{CSV file name} - linkedIn-list
- Facebook:
{CSV file name} - facebook-list
- Twitter:
{CSV file name} - twitter-list
Simply replace the example path with the desired CSV's path on your computer:
const csvPath = process.argv[2] || '/Users/x/Downloads/5_15_24 - Ecom Stores & Leaders - Verified Emails & Signals (50k, 1-100 employees) - Original Data.csv'; // Replace what's between the '' here with your desired CSV path location
Simply supply the desired CSV's path to the end of the Terminal CLI command:
node index.js /path/to/your/csvfile.csv