A Python CLI tool that fetches real-time job listings from SerpAPI Google Jobs Engine and saves them to a CSV file for offline reference.
- 🔍 Fetch job listings by role and location.
- 💾 Saves results to a jobs.csv file.
- 🧹 Clean and well-formatted CLI output.
- 🔑 API key stored securely in
.envfile.
-
Clone the repository
git clone <your-repo-url> cd Project_15_Job_Listings_Scraper
-
Install dependencies
pip install -r requirements.txt
-
Create a
.envfileAPI_KEY=your_serpapi_key_here
-
Run the scraper
python job_scraper.py
Enter Location: Kolkata
Enter Role: Python Developer
One job posting found at TCS, in Kolkata, for Python Developer | Apply: [{'link': 'https://apply-link.com'}]
One job posting found at Infosys, in Kolkata, for Backend Developer | Apply: [{'link': 'https://apply-link.com'}]And a file jobs.csv will be created like:
company_name,location,title,apply_options
TCS,Kolkata,Python Developer,"[{'link': 'https://apply-link.com'}]"
Infosys,Kolkata,Backend Developer,"[{'link': 'https://apply-link.com'}]"- How to work with SerpAPI and process API responses.
- Writing job data to CSV files using Python.
- Managing API keys securely with
dotenv.
requests
python-dotenv
- Add support for multiple pages of job results.
- Allow user to filter by remote/onsite jobs.
- Schedule periodic runs and send notifications for new job postings.