This project automates the job application process on Naukri.com using Puppeteer and Cypress.
-
Clone the repository:
git clone https://github.com/yourusername/apply-naukri-bot.git cd apply-naukri-bot
-
Install dependencies:
npm install
-
Create a
.env
file in the root of the project directory and add your credentials and job search parameters:NAUKRI_USERNAME=your-email@example.com NAUKRI_PASSWORD=yourpassword JOB_KEYWORDS=your-job-keywords JOB_LOCATION=your-job-location
-
Ensure the
.env
file is added to.gitignore
to prevent sensitive information from being pushed to the repository:# .gitignore .env
-
Fetch job links using Cypress:
npx cypress open
- Run the
fetchJobs.js
script to save job URLs tocypress/fixtures/internalSiteJobs.json
.
- Run the
-
Apply for jobs using Puppeteer:
node applyJobs.js
- The script logs in to Naukri.com using the credentials provided in the
.env
file. - It fetches job URLs based on the specified keywords and location.
- It then navigates to each job URL and applies for the job.
This script logs in to Naukri.com and fetches job links based on the keywords and location specified in the .env
file. The job links are saved to cypress/fixtures/internalSiteJobs.json
.
This script reads the job links from cypress/fixtures/internalSiteJobs.json
, logs in to Naukri.com, and applies for each job.