A simple Python script to fetch job listings from LinkedIn based on user-defined criteria using Selenium for web scraping. This project allows users to search for jobs by keywords and location and prints the job details to the console.
- Login to LinkedIn: Automates the login process using Selenium.
- Search Jobs: Fetches job listings based on keywords and location.
- Console Output: Prints job details including title, company, and location.
-
Clone the repository:
git clone https://github.com/atwalnimrat/linkedin-job-fetcher.git cd linkedin-job-fetcher -
Install dependencies:
pip install -r requirements.txt
The
requirements.txtshould include:seleniumMake sure to also download the appropriate ChromeDriver for your version of Chrome and place it in a directory included in your PATH.
-
Run the script:
python linkedin-job-fetcher.py
-
Enter your LinkedIn login credentials and search criteria when prompted.
To create an executable from the Python script:
-
Ensure PyInstaller is installed:
pip install pyinstaller
-
Build the executable:
pyinstaller --onefile linkedin-job-fetcher.spec
This will create a standalone executable based on the configuration in
linkedin-job-fetcher.spec.
- Browser Compatibility: This script uses ChromeDriver. Ensure that your ChromeDriver version matches your installed Chrome browser version.
- LinkedIn Login: This script automates the LinkedIn login process. Use it responsibly and ensure compliance with LinkedIn's terms of service.
- Error Handling: Basic error handling is implemented. You might need to adjust or enhance it based on your needs.
Feel free to submit issues or pull requests to improve the functionality of this project.