Version 2.0 is now available!
This Python script uses Selenium to scrape data from LinkedIn company pages. It logs into LinkedIn with provided credentials, navigates to a specified company's main page, scrolls to load all employees, saves the HTML source to a file, and extracts relevant data into an Excel spreadsheet.
- Python 3.x
- Selenium WebDriver
- Chrome WebDriver (included for Chrome browser automation)
openpyxllibrary for Excel file handling
-
Install dependencies:
pip install selenium openpyxl
-
Download Chrome WebDriver:
- Visit ChromeDriver - WebDriver for Chrome and download the appropriate version for your Chrome browser.
-
Place the
chromedriver.exein the same directory as your script.
-
Run the script:
python linkedin_scraper.py
-
Follow the prompts to enter your LinkedIn credentials and the company's main page URL.
-
After execution, the script will generate an
output.xlsxfile containing extracted data.
- Ensure that you comply with LinkedIn's terms of service and data usage policies when using this script.
- This script assumes you have a valid LinkedIn account and proper permissions to access the company's page.