LinkedIn Lead-Gen: Beginner's Guide to Generating Leads (+email addresses)

Image result for linkedinWe want the emails addresses of people having #{insert_job_title_here} from #{this_list_of_companies}. How do we do?

-Every CEO, Head of Sales, CMOs, ever.

Getting the email addresses of specific peoples in a company is Sales 101. Yet, so much time and money are wasted right there!

They are many ways of assembling such a prospect list. Going to events, buying prospects’ lists on the internet, assigning interns or salespeople the tedious work of browsing and copy/pasting, etc.

How about building your own prospect list, with full names, emails, phone numbers, and much more?
This Phantombuster tutorial will show you how you or your sales team can generate a constant stream of tens, if not hundreds, of fresh, targeted leads every day.

➡️ Too Long, Didn’t Read;
We are going to automatically do hundreds of searches of LinkedIn, extractcorresponding profiles and either connect to & scrape or scrape & enrichtheir profiles.

Step 1: Finding out those companies on LinkedIn.


The first step is to find all those companies on LinkedIn.

At Phantombuster we have this great tool called LinkedIn Company URL Finder. It will take as an input a list of companies’ names (or domains) and find its corresponding LinkedIn Company page.

Go to Google Spreadsheet and start filling a spreadsheet with all the companies you’re interested in.



Create a Phantombuster account. You’ll be able to do all that with a Free Forever Plan, especially if you just subscribed and benefit from the Growth-Hacker Trial plan.

Click on Use this API on your account and go to the configuration page.



Then on the 3 configuration dots.



Now fill the configuration as follow. The input is your Google Spreadsheet.



⚠️ Make sure that your spreadsheet is public so Phantombuster can access it.



Save & Launch. Phantombuster will take you to the console and show its work as it progresses. After a while, scroll down to the Files sections and checkout the resulting .csv file. It will resemble this:



That’s fine. We’ll now need a bit more info from each company. Let’s ask Phantombuster to go to each URL and extract as much data as possible.

Step 2: Get more details about each company.
Phantombuster has an API called LinkedIn Company Info. It ’ll visit on your behalf each companies’ page and copy/paste in a spreadsheet every piece of public information about it. Oh, and it’ll do it faster and more cleanly than a full battalion of interns & virtual assistants.

Add the LinkedIn Company Info to Phantombuster and go to the Configuration page.

Fill in your Spreadsheet URL enhanced with Step 1's data.

And also fill in your LinkedIn session cookie; That’ll allow Phantombuster to perform actions on your behalf. Click here to see how to get your cookie on Chrome, Firefox or Opera.

Specify as input the Google Spreadsheet link to this list of companies. Don’t forget to make it public so Phantombuster can access it.



(If your spreadsheet has a column name, aka the string of text on row 1 of each column, specify it in the 3rd field).

Save and Launch.

Phantombuster will go through that list one by one and find the URL of each company. It’ll also gather some basic info about each:

link, query, name, followerCount, location, description, website, size, logo, specialities, yearFounded, companyAddress, mainCompanyID, linkedinID, employeesOnLinkedIn, timestamp, error, industry, companySize, type, founded, headquarters, specialties, fundingTotal, fundingTotalUrl, fundingRecent, fundingRecentUrl, fundingInvestor, fundingInvestorUrl, fundingCrunchbaseUrl, fundingRecentAmount 📊



Not bad!
Now, before you go to step 2, save the generated file’s URL; You’ll need it very soon.



Step 3: Mass generate lists of people you want to extract.
That’s where things are becoming interesting: Let’s look for every single person doing X at each of those companies.

Let’s start by generating a LinkedIn Search URL: Go to LinkedIn and do the basic search that you would normally do, for one single company.

For our example, we’ll be looking for people having declared themselves as “Marketing Manager” or “Marketing Directors” and currently working at “Speedo”. You can add as many filters as you’d like.

Visually it looks like this:



Click on “Apply” and you should obtain this URL:

https://www.linkedin.com/search/results/people/?facetCurrentCompany=%5B%2253467%22%5D&origin=FACETED_SEARCH&title=Marketing%20Manager%20OR%20Marketing%20Director
Now, let’s generate a similar URL for every company you have in your prospection file. Go to Google Spreadsheet, create a new sheet.

Go to B1 cell and use the following =importdata formula. Instead of the green URL, paste the URL of the output .csv file you obtained at the end of Step 2.



Done? Press ‘Enter’ and your Company’s detailed info appear here.



So far we’ve done nothing more than importing Step’s 2 file. Cool. Now let’s paste the search URL you generated on LinkedIn in the first column… with a slight change:

=CONCATENATE("https://www.linkedin.com/search/results/people/?facetCurrentCompany=[", P2, "]&origin=FACETED_SEARCH&title=Marketing Manager OR Marketing Director")


What we did here is interpolating at the right spot in the URL the company’s ID. (The ID was extracted by Phantombuster in the mainId column, hence the cell P2).

Now we can generate the right search URLs for hundred of companies by pulling down the formula in Spreadsheet. Congrats 🎉



These URLs are super important because they are going to serve as input to our next API: LinkedIn Search Export.

Step 4: Extract everyone’s LinkedIn Profile URLs
Now Phantombuster is going to do each searches on your behalf, go to each page as many time as necessary and copy/paste information about each prospect.

For doing this, add Phantombuster’s LinkedIn Search Export to your dashboard.

As previously, install the API on your dashboard, fill in your cookie, and as an input the public URL of the spreadsheet with the URLs.

The 3rd important thing highlighted is the number of pages you’ll extract per launch. LinkedIn is monitoring activity and will rate limit your account if you extract too much data, too fast. Prefer extracting just a few pages per launch and spacing these out by a couple hour each (more about scheduling launches here).



Save, launch and let Phantombuster do the job. And here is the result:



Step 5: (optional) Connect with those people…
This list of LinkedIn profiles is really interesting and a great improvement would be to also get those peoples’ email addresses.

One way to do this is to connect with them on LinkedIn. First-degree connections have 2 main benefits:

You’ll warm your prospect up a little bit by being not a stranger anymore, but one of his LinkedIn connections.
You’ll be a 1st-degree connection which will grant you access to its email address… and even its phone number!
So how do you connect with thousands of people on LinkedIn over a few weeks?

No, not by hand. ☝️

Yes, with Phantombuster. 👌

Head to Phantombuster’s LinkedIn Network Booster, add it to your dashboard and set it up. As always: cookies, input file URL. Specify the name of the column containing those LinkedIn Profile URLs in your input file (should be url)

Here you can choose to add a personalized message. Some people love adding/receiving a message, others absolutely hate it. It’s your choice whether to add one or not: You know your customers best. But a rule that prevails is: Don’t start selling just now. It’s just rude. You have 300 characters: find a way to be different.



Save but don’t launch just yet.

Launching would add 10 people to your network, then just stop.

What we want to do is set that process on Repeat. In order to stay below LinkedIn’s radar (they’re not fond of automation), we recommend adding 40 people per day and slowly increment that number. More about that topic on our other article: Never Get Banned. But don’t get greedy and add more than 80 people per day, unless you have a premium account.

Go to Phantombuster’s API Settings (which is not Configuration).



Start with 4 times a day. You’ll decide later how much you want it.



Scroll down, save. You can either launch by yourself or not. Phantombuster will keep launching your API 4 times a day. If you want to stop those launches, come back here and switch back to Manually.

Give people a few days/weeks to accept your invitation. We’re now going to extract their email addresses and phone numbers.

Step 6: …and extract their email addresses.
So what we’ll do is use Phantombuster’s LinkedIn Profile Scraper.

If you followed Step 5 and connected with those people, you can skip the Email Discovery part since their emails will already be (most of the time) available to you.

If you’ve skipped that part, check the email discovery mode. At the moment, you need a DropContact.io API key to enrich those emails. But Phantombuster will soon be integrated so I’ll update this part of the article in a few weeks.

What’s happening behind the scenes? Phantombuster will visit each profile one-by-one and extract every information on the page. For your first-degree connections, that means an email address and a phone number. For the other, a public email (most of the time unavailable) and an email discovered by DropContact.

Let’s go: LinkedIn Profile Scraper to your Phantombuster dashboard.

Go to the configuration page and input your cookie as usual and your input file’s URL (you can get it the same way we did at the end of Step 2). Specify the column’s name containing the LinkedIn Profile URLs (it should be url ) and eventually, your DropContact.io API key (you’ll receive it after subscribing to their services).



Save and launch.

ℹ️ In Email Discovery mode the API takes about 1min per profile to retrieve visit & extract emails. It’s much faster in ‘normal’ mode.

ℹ️ Each prospect will receive a “John Doe visited your profile”-type notification since Phantombuster visits it on your behalf.

And here is what you should obtain:

Form 1-st degree connections:
- Professional emails (with DropContact): 68%

- Personal emails: 98% (!!!)

- Phone numbers: 39%- Twitter accounts: 43%



For 3rd-degree connections with DropContact:
- Professional emails: 72%

- No personal email, phone or Twitter accounts.



Pretty incredible result, isn’t it?
Yes, it looks difficult at first but you too can set that process up. Thousands of non-technical people use our software every day.

That being said, we’re been working for months on releasing Phantombuster 2.0 to the world. It should be out by April 2019 but shh! Our CTO doesn’t want to communicate a date just yet.

Our goal is to make it easy for creative, non-technical, people to setup the most efficient growth-hacking strategies.