Skip to content

abq2904/linkedin-lead-scraper-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

8 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

AI-Powered LinkedIn Lead Scraper

Extract high-quality B2B leads from LinkedIn without getting blocked. This script:

  • Scrapes LinkedIn profiles without API access (using Selenium)
  • Cleans data with OpenAI enrichment (identifies decision-makers)
  • Exports to CSV/Google Sheets for sales teams

πŸ‘‰ Perfect for: SaaS companies, recruiters, and agencies needing targeted lead lists.

πŸš€ Key Features

  • Human-like scraping (avoids IP bans)
  • AI enrichment (extracts emails/company data via OpenAI)
  • CRM-ready output (CSV, Airtable, or Google Sheets)

⚠️ Legal Note

This tool follows LinkedIn's robots.txt guidelines:

  • No brute-force scraping (respects Crawl-Delay)
  • For personal/ethical use only

βš™οΈ Tech Stack

  • Python 3.10+
  • Selenium (with undetected-chromedriver)
  • OpenAI API (GPT-4 for data enrichment)
  • Pandas (data cleaning)

πŸ› οΈ Installation

git clone https://github.com/abq2904/linkedin-lead-scraper-python.git
cd linkedin-lead-scraper-python
pip install -r requirements.txt

🎯 Usage

python scraper.py --query "CTO at SaaS startups in USA" --pages 5

πŸ“Š Output Example Name Title Company Email John Doe CTO @ScaleFast ScaleFast johndoe@scalefast.com πŸ’Ό Business Use Cases B2B Lead Generation: Find ideal customers for your SaaS product

Recruitment: Source passive candidates with specific skills

Competitor Analysis: Map org structures of rival companies

πŸ“Œ Need a custom solution? Send me message

About

πŸ€– AI-Powered LinkedIn Scraper | Extract Emails & Profiles Ethically with Python + Selenium βœ… Bypasses LinkedIn restrictions with human-like behavior βœ… Enriches data using OpenAI API (job titles, company info) βœ… Exports to CSV/Google Sheets for CRM integration βœ… Anti-detection techniques (random delays, user-agent rotation)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages