LinkedIn Salary Insight Extractor
This Python script allows you to scrape job listings from LinkedIn, focusing on extracting job salary information using the BeautifulSoup library. The scraped data is organized into a pandas DataFrame and exported to an Excel file for easy analysis.
Note: Web scraping may be against LinkedIn's terms of service, and scraping websites should be done ethically and responsibly. This script is provided as an educational example and should be used in accordance with LinkedIn's policies.
- Python 3.x
- BeautifulSoup (
pip install beautifulsoup4
) - pandas (
pip install pandas
) - requests (
pip install requests
)
- Clone this repository or download the script file directly.
- Install the required dependencies using the provided
requirements.txt
file:pip install -r requirements.txt
. - Open the script file in a text editor of your choice and modify the
search_query
andlocation
variables according to your requirements. - Run the script using the command:
python script_name.py
, wherescript_name.py
is the name of the script file. - The scraped salary information will be saved in an Excel file named according to your search query and location, e.g.,
Python Developer_New York_salaries.xlsx
.
- This script is intended for educational purposes and should be used responsibly and within the bounds of LinkedIn's terms of service.
- LinkedIn's website structure may change over time, which might require adjustments to the script.
- The script is not guaranteed to work indefinitely due to potential changes in LinkedIn's structure or policies.
This script is provided under the MIT License.
Disclaimer: This README template is provided as a starting point. Be sure to customize it according to your project's specifics and add any necessary information, acknowledgments, and disclaimers.