LinkedIn Lead Scraper
A LinkedIn Scraper to scrape up to 10k LinkedIn profiles and save their e-mail addresses if available!
It collects 10k profiles from LinkedIn directory and their details like name, current position/headline and their location information. After all profiles are collected, it starts finding their email addresses
Prerequisites
- Python 3.x only (Download from here) and make sure to tick on "Add to PATH" during installation in windows machines
- Installation of below module using command line
pip3 install requests
- Account in LinkedIn is a must! You can create temporary profiles if you want.
Variants Details
Random_Scraper.py
is the initial development of the scraper that collects up to 10k random linkedin profiles from directory and picks info from their profile
CompanyWise_Leads.py
is the revised version of the code to be able to collect company wise employee profiles for more leads information.
Limits
- Do not login from IP address from where you don't usually login to your linkedin account, otherwise it will trigger their security system and won't let you login.
- Result is limited to 10,000 records only
- First page data is not collected due to being away from API endpoint capability.
Usage
Once you have installed and setup the prerequisites, open the code(.py file) with a text editor(must not be any rich text editor) and you will see linkedin_email and linkedin_password variables.
Put your linkedin email and password there(inside the double quote) and save the code
Now you can double click the Random_Scraper.py or CompanyWise_Leads.py to execute and for linux or mac users, in the terminal, cd to script folder and type
python3 Random_Scraper.pyOr,
python3 CompanyWise_Leads.py