{"id":25385398,"url":"https://github.com/stroller15/daily-naukari-profile-update-script","last_synced_at":"2025-04-09T16:28:43.374Z","repository":{"id":277034386,"uuid":"931108917","full_name":"Stroller15/daily-naukari-profile-update-script","owner":"Stroller15","description":null,"archived":false,"fork":false,"pushed_at":"2025-02-11T19:24:27.000Z","size":141,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-11T19:39:12.602Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Stroller15.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-02-11T18:22:41.000Z","updated_at":"2025-02-11T19:24:30.000Z","dependencies_parsed_at":"2025-02-11T19:49:40.754Z","dependency_job_id":null,"html_url":"https://github.com/Stroller15/daily-naukari-profile-update-script","commit_stats":null,"previous_names":["stroller15/daily-naukari-profile-update-script"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Stroller15%2Fdaily-naukari-profile-update-script","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Stroller15%2Fdaily-naukari-profile-update-script/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Stroller15%2Fdaily-naukari-profile-update-script/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Stroller15%2Fdaily-naukari-profile-update-script/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Stroller15","download_url":"https://codeload.github.com/Stroller15/daily-naukari-profile-update-script/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248067328,"owners_count":21042277,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-02-15T09:48:39.369Z","updated_at":"2025-04-09T16:28:43.350Z","avatar_url":"https://github.com/Stroller15.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Daily Naukri Profile Update Script\n\nThis repository contains a Node.js script that automates the process of updating your resume on Naukri.com using Puppeteer. The script logs into your Naukri account, navigates to the profile page, and uploads a new resume file. It is designed to be run daily using a cron job (or equivalent scheduler) on Windows, Linux, or macOS.\n\n---\n\n## Prerequisites\n\nBefore you begin, ensure you have the following installed\n\n- [Node.js](https://nodejs.org/) (v14 or higher)\n- [npm](https://www.npmjs.com/) (usually comes with Node.js)\n- [Puppeteer](https://pptr.dev/) (will be installed via `npm install`)\n\n---\n\n## Installation\n\n1. **Clone the repository:**\n\n   ```bash\n   git clone https://github.com/your-username/daily-naukari-profile-update-script.git\n   cd daily-naukari-profile-update-script\n   ```\n\n2. **Install dependencies:**\n\n   ```bash\n   npm install\n   ```\n\n3. **Set up your credentials and resume path:**\n\n   Open the `index.js` file and update the following variables with your Naukri credentials and the path to your resume file:\n\n   ```javascript\n   // Naukri credentials\n   const EMAIL = \"PUT_YOUR_NAUKARI_PROFILE_EMAIL_HERE\";\n   const PASSWORD = \"PUT_YOUR_NAUKARI_PROFILE_PASSWORD_HERE\";\n\n   // Path to your resume file\n   const RESUME_PATH = path.join(__dirname, \"Shubham_Verma_SDE_2025.pdf\");\n   ```\n\n   Replace `PUT_YOUR_NAUKARI_PROFILE_EMAIL_HERE` and `PUT_YOUR_NAUKARI_PROFILE_PASSWORD_HERE` with your actual Naukri login credentials. Also, replace `Shubham_Verma_SDE_2025.pdf` with the name of your resume file.\n\n---\n\n## Usage\n\nTo run the script manually, use the following command:\n\n```bash\nnode index.js\n```\n\nThis will execute the script, log into your Naukri account, and update your resume.\n\n---\n\n## Automating with Cron Jobs (Linux/macOS) or Task Scheduler (Windows)\n\nTo automate the script to run daily, follow the instructions below based on your operating system.\n\n### **For Linux/macOS:**\n\n1. **Make the script executable:**\n\n   ```bash\n   chmod +x index.js\n   ```\n\n2. **Open the crontab editor:**\n\n   ```bash\n   crontab -e\n   ```\n\n3. **Add a new cron job:**\n\n   For example, to run the script every day at 8 AM, add the following line:\n\n   ```bash\n   0 8 * * * /usr/bin/node /path/to/daily-naukari-profile-update-script/index.js \u003e\u003e /path/to/daily-naukari-profile-update-script/logfile.log 2\u003e\u00261\n   ```\n\n   - Replace `/usr/bin/node` with the path to your Node.js executable (you can find it by running `which node`).\n   - Replace `/path/to/daily-naukari-profile-update-script` with the actual path to your project directory.\n\n4. **Save and exit the crontab editor.**\n\n---\n\n### **For Windows:**\n\n1. **Open Task Scheduler:**\n\n   - Press `Win + S`, type \"Task Scheduler,\" and open it.\n\n2. **Create a new task:**\n\n   - Click on \"Create Basic Task\" in the right-hand panel.\n   - Name the task (e.g., \"Daily Naukri Profile Update\") and click \"Next.\"\n\n3. **Set the trigger:**\n\n   - Choose \"Daily\" and click \"Next.\"\n   - Set the time to 8:00 AM (or your preferred time) and click \"Next.\"\n\n4. **Set the action:**\n\n   - Choose \"Start a Program\" and click \"Next.\"\n   - In the \"Program/script\" field, enter the path to `node.exe` (e.g., `C:\\Program Files\\nodejs\\node.exe`).\n   - In the \"Add arguments\" field, enter the path to the `index.js` file (e.g., `C:\\path\\to\\daily-naukari-profile-update-script\\index.js`).\n   - In the \"Start in\" field, enter the path to the project directory (e.g., `C:\\path\\to\\daily-naukari-profile-update-script`).\n\n5. **Finish the setup:**\n\n   - Click \"Next\" and then \"Finish.\"\n\n6. **Logging:**\n\n   - To log the output, modify the script to write logs to a file (already implemented in the script).\n\n---\n\n## Logging\n\nThe script logs its output to `logfile.log` in the project directory. You can check this file for any errors or to verify that the script is running as expected.\n\n---\n\n## Platform-Specific Notes\n\n- **Linux/macOS:** Ensure Puppeteer has all the required dependencies installed. Run the following command if you encounter issues:\n\n  ```bash\n  sudo apt-get install -y libgbm-dev libxshmfence-dev\n  ```\n\n- **Windows:** Puppeteer should work out of the box, but ensure your system has the latest updates and required Visual C++ redistributables.\n\n- **macOS:** If you encounter issues with Puppeteer, ensure Xcode command-line tools are installed:\n\n  ```bash\n  xcode-select --install\n  ```\n\n---\n\n## Troubleshooting\n\n- **Login Issues:** Ensure that your Naukri credentials are correct and that your account is not locked due to multiple failed login attempts.\n- **File Upload Issues:** Make sure the resume file path is correct and the file is accessible.\n- **Puppeteer Issues:** If the script fails to run, try running it in non-headless mode by setting `headless: false` in the `puppeteer.launch` options. This will allow you to see the browser actions and debug any issues.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstroller15%2Fdaily-naukari-profile-update-script","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstroller15%2Fdaily-naukari-profile-update-script","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstroller15%2Fdaily-naukari-profile-update-script/lists"}