ScrapingLab
← Back to Blog
Tutorials

How to Scrape LinkedIn: Complete Guide

October 17, 2024

Want to extract valuable data from LinkedIn? Here’s what you need to know:

  • LinkedIn scraping can provide leads, candidate info, and industry insights
  • It’s legal to scrape public data, but against LinkedIn’s terms of service
  • Stay within daily profile view limits to avoid account issues
  • Use official APIs when possible for safer data collection

Quick comparison of scraping methods:

MethodEase of UseData AccessRisk Level
Official APIMediumLimitedLow
Cloud ToolsEasyExtensiveMedium
Custom ScriptsHardExtensiveHigh

What is LinkedIn Scraping

LinkedIn

LinkedIn scraping is grabbing data from LinkedIn profiles and pages automatically. It’s a way to get tons of professional info fast.

What can you scrape? Stuff like:

  • User profiles (names, jobs, work history)
  • Company details
  • Job listings
  • Professional connections
  • Skills and endorsements
  • Activity (posts, comments, likes)

Sounds useful, right? But hold up. There’s a catch.

LinkedIn’s rules say a big fat NO to automated data collection:

“You agree that you will not use automated methods to access the Services or any Content on the Services for any purpose.”

Translation: Scraping without LinkedIn’s OK can get you into trouble. We’re talking account bans or even legal trouble.

The law? It’s messy. In the US, the hiQ v. LinkedIn case shows how complicated it is:

1. At first, courts said hiQ could scrape public LinkedIn data.

2. Later, they sided with LinkedIn. Why? hiQ made fake accounts to get data. This is a problem.

Want to play it safe? Here’s how:

  • Use LinkedIn’s official API when you can
  • Stick to public info
  • Don’t go crazy (50 profile views per day is the limit)
  • NO fake accounts or sneaky stuff

Remember: Just because you CAN scrape doesn’t mean you SHOULD. Think about privacy and laws like GDPR.

Types of Data You Can Get

LinkedIn’s a valuable source of pro info. Here’s what you might find:

Data TypeWhat It IsExamples
Profile BasicsBasic user informationName, headline, location
Work HistoryJob detailsCompany names, titles, dates
EducationEducation historySchools, degrees, grad years
SkillsWhat they’re good atTech skills, soft skills
ConnectionsNetwork size1st, 2nd, 3rd degree connections
RecommendationsColleague shout-outsRecommendation text, who wrote it
Company InfoBusiness basicsCompany size, industry, where they are
Job PostingsOpen gigsJob titles, what they want, how to apply

Getting Ready to Scrape LinkedIn

Before you dive into LinkedIn scraping, you need to prep your account and grab the right tools. Here’s the lowdown:

Your LinkedIn Account

Your account is your ticket to data. Here’s what you should know:

  • Basic accounts have limits. For serious scraping, go premium.
  • Sales Navigator opens up more search options and data. It is a worthwhile investment for power users.
  • Fill out your profile completely. A complete profile looks more legitimate and may improve your access to data.

Scraping Tools

You need the right tools to extract LinkedIn data at scale. Here are the main categories:

Tool TypeExamplesBest For
CloudEvaboot, PhantombusterNon-coders, scaling up
BrowserDux-Soup, FindymailQuick setup, small jobs
DesktopLinked Helper, LaGrowthMachineLocal control, tweaking
  1. Get Python 3.7.9 or newer
  2. Install libraries:
pip3 install beautifulsoup4 requests playwright

Important: LinkedIn actively enforces its terms of service against automated scraping. Use these tools responsibly, respect rate limits, and stick to publicly available data.

“Stick to ethical scraping. It’s not just about what you can do, but what you should do”, - Mark Thompson, CEO of Scraping Ethics Inc.

Ways to Scrape LinkedIn

LinkedIn’s packed with data, but getting it can be tricky. Here’s how to scrape LinkedIn today, whether you code or not.

Tools for Non-Coders

Not into coding? These tools make it easy:

ToolBest ForStarting Price
EvabootSales Navigator data$29/month
PhantombusterMulti-platform scraping$69/month
WizaEmail findingFree tier available
  1. Sign up
  2. Connect Sales Navigator
  3. Set search criteria
  4. Hit “Export” for Excel data

Some users say they get 1,000 leads daily with Evaboot. Not bad for sales teams.

LinkedIn’s API

For developers, the API’s your best bet. Here is what you need to know:

  • You need to be a LinkedIn Partner
  • Access varies by plan:
    • Basic (Free): 3 profiles
    • Standard ($59/month): 500 profiles
    • Premium ($499/month): 10,000 profiles

Getting started:

  1. Create an app in the Developer Portal
  2. Get app verification
  3. Set up OAuth 2.0
  4. Make API calls

DIY Scripts

Want full control? Write your own scripts:

  1. Get Python 3.7.9+
  2. Install libraries:
pip3 install beautifulsoup4 requests playwright
  1. Write a script to navigate and extract data
  2. Use proxies and rotate user agents

But watch out. LinkedIn’s not a fan of scrapers. Stay within limits to keep your account safe.

“Stick to ethical scraping. It’s not just about what you can do, but what you should do”, - Mark Thompson, CEO of Scraping Ethics Inc.

Whatever method you pick, scrape responsibly. Respect LinkedIn’s terms of service.

Tips for Good LinkedIn Scraping

Staying Within Limits

LinkedIn isn’t a fan of scrapers. To keep your account safe and data flowing, you need to play by their rules.

Here’s what you need to know:

Account TypeDaily Profile ViewsSearch Results
New/Inactive80 over 8 sessions100 pages
Free (5k+ connections)150 over 10 sessions150 pages
Premium (active)300 over 20 sessions200 pages (Sales Nav)
  • Space out your sessions
  • Mix up your scraping times
  • Slow down and add random delays

One scraper shared their success: “I grab 10 profiles every hour, 8 times a day. It’s slower, but I’ve had zero issues for 6 months.”

Using Proxies and User Agents

Want to avoid detection? Make yourself look like different users:

  1. Rotate IP addresses: Use residential proxies. They’re harder to spot.
  2. Switch user agents: Make it seem like requests come from different browsers. Here’s a simple Python script:
import random

user_agents = [
    'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36',
    'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0 Safari/605.1.15',
    # Add more user agents here
]

headers = {'User-Agent': random.choice(user_agents)}
  1. Respect robots.txt: Check what LinkedIn allows. Use tools like RobotsParser to stay compliant.

A word of caution: Free proxies are tempting, but they’re often blocked and less secure. Invest in a good proxy service instead.

Common Problems and Fixes

LinkedIn scraping isn’t always smooth sailing. Here are the big issues and how to tackle them:

Handling CAPTCHAs

CAPTCHAs are LinkedIn’s bot-busters. Here’s how to deal:

  1. CAPTCHA solvers: Tools like 2captcha and Anti-Captcha can auto-bypass these challenges.
  2. Smart proxies: Rotate IPs and user-agents to look like different users. Fewer CAPTCHAs pop up this way.
  3. Act human: Add random delays and fake mouse moves. It’s all about blending in.

“Adding 2-5 second delays between actions and using residential proxies cut our CAPTCHA encounters by 80%.” - Scraper dev

Keeping Data Accurate

Garbage in, garbage out. Here’s how to keep your data clean:

  1. Validation tools: Use Pytest, Pandas, or JSONAssert to spot data oddities.
  2. Quality alerts: Set up automated checks. Get pinged when things look fishy.
  3. Clear requirements: Before you start, know what you want:
    • Data types
    • Value ranges
    • Must-have fields
  4. Multiple sources: Don’t trust just one profile. Cross-check data across LinkedIn sections or other platforms.
  5. Regular audits: Manually review samples. Catch what the machines miss.

Remember: LinkedIn’s AI is always watching. Stay within limits, use good proxies, and make your scraper act human. It’s the key to avoiding blocks and keeping data flowing.

Using the Data You’ve Scraped

Got your LinkedIn data? Great. Let’s make it work for you.

Cleaning and Analyzing Data

Raw data is messy. Clean it up:

  1. Kick out duplicates
  2. Fix wonky formatting
  3. Make entries consistent (“CEO” = “Chief Executive Officer”)
  4. Spot and fix errors

Now, analyze. Use Tableau or Google Data Studio to create visuals. They’ll turn your data into eye-catching charts and graphs.

You might discover:

  • Your connections’ top industries
  • How your network’s grown
  • Most common skills in your circle

Putting Data to Work

Clean data packs a punch. Use it for:

Marketing:

  • Find leads based on job titles or industries
  • Create content your audience will love
  • Spot influencers in your network

Hiring:

  • Find candidates with specific skills
  • Track job role trends
  • Use mutual connections for introductions

Business Growth:

  • Find new markets using location data
  • Spot potential partners
  • Track your company’s LinkedIn growth

Always comply with privacy regulations and LinkedIn’s terms of service when using scraped data.

Wrap-Up

LinkedIn scraping is a significant advantage for businesses today. With over 900 million users, it is one of the richest sources of professional data available. Here are the key trends shaping LinkedIn data extraction:

AI-powered analysis: Machine learning tools are making it easier to spot patterns in professional data, from skill trends to hiring signals.

Privacy compliance: GDPR and similar regulations require that scraping tools handle personal data responsibly. Tools that prioritize consent and data protection will continue to lead.

Workflow automation: The best tools integrate scraping into broader workflows, pushing extracted data directly into CRMs, spreadsheets, or outreach tools.

API-first approaches: LinkedIn’s official API provides the most reliable and compliant access to data. Use it when possible.

Best practices to protect your account:

  • Stick to public data
  • Don’t scrape too often
  • Use official APIs when you can

What It’ll Cost You: Prices vary. Here’s a quick look:

ToolStarting Price
Evaboot$9/month
Phantombuster$69/month
TexAu$29/month

FAQs

Can I scrape LinkedIn profiles?

Yes, you can. Tools like Evaboot make it possible. Here is what you need to know:

Evaboot + LinkedIn Sales Navigator = profile scraping power. It works on public and private profiles in your network. You can pull emails straight from profiles.

Daily export limits:

  • Free LinkedIn: 80 profiles
  • LinkedIn Premium: 150 profiles
  • Sales Navigator: 1000 profiles
  • Evaboot + Sales Navigator: 2500 profiles

Evaboot pricing:

PlanMonthly CostCredits
Basic$9100
Standard$29500
Pro$491500
Enterprise$994000

Heads up: Scraping public LinkedIn data can be legal, but it’s against their terms of service. Tread carefully to avoid getting banned.


Related on ScrapingLab:

Vasyl Hebrian

Vasyl Hebrian

Founder & CEO at ScrapingLab

Building tools that help teams extract web data without writing code. Previously founded Vollna, a platform for freelance workflow automation.

@hebrian_vasyl

Related Posts