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)
openpyxl
library for Excel file handling
-
Clone the repository:
git clone https://github.com/llsohrabll/LinkedIn-Scrapper cd LinkedIn-Scrapper
-
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.exe
in 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.xlsx
file 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.
This project is licensed under the MIT License - see the LICENSE file for details.