{"id":27115162,"url":"https://github.com/sunjay-dev/whatsapp-bot-with-puppeteer","last_synced_at":"2025-10-10T16:34:35.979Z","repository":{"id":197231323,"uuid":"698235925","full_name":"sunjay-dev/whatsapp-bot-with-puppeteer","owner":"sunjay-dev","description":"Automate WhatsApp messages with Puppeteer. Send fun messages programmatically!","archived":false,"fork":false,"pushed_at":"2025-03-26T15:26:18.000Z","size":67,"stargazers_count":6,"open_issues_count":0,"forks_count":4,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-07T04:54:20.789Z","etag":null,"topics":["automation","message","messaging","nodejs","puppeteer","puppeteer-core","whatsapp","whatsapp-bot"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sunjay-dev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2023-09-29T13:12:58.000Z","updated_at":"2025-03-26T15:26:22.000Z","dependencies_parsed_at":null,"dependency_job_id":"f17d3766-31d5-438e-b820-b22333f2cfc6","html_url":"https://github.com/sunjay-dev/whatsapp-bot-with-puppeteer","commit_stats":null,"previous_names":["ak-ay675/whatsapp-bot-with-puppeteer"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sunjay-dev/whatsapp-bot-with-puppeteer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sunjay-dev%2Fwhatsapp-bot-with-puppeteer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sunjay-dev%2Fwhatsapp-bot-with-puppeteer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sunjay-dev%2Fwhatsapp-bot-with-puppeteer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sunjay-dev%2Fwhatsapp-bot-with-puppeteer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sunjay-dev","download_url":"https://codeload.github.com/sunjay-dev/whatsapp-bot-with-puppeteer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sunjay-dev%2Fwhatsapp-bot-with-puppeteer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279004695,"owners_count":26083750,"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","status":"online","status_checked_at":"2025-10-10T02:00:06.843Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["automation","message","messaging","nodejs","puppeteer","puppeteer-core","whatsapp","whatsapp-bot"],"created_at":"2025-04-07T04:54:23.651Z","updated_at":"2025-10-10T16:34:35.973Z","avatar_url":"https://github.com/sunjay-dev.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WhatsApp Puppeteer Bot\n\n## Overview\n\nThis project is a simple WhatsApp automation script using Puppeteer. It leverages Puppeteer's capabilities to send messages on WhatsApp.\n\n## Features\n\n* Launches a headless browser with Puppeteer.\n* Navigates to WhatsApp Web ([https://web.whatsapp.com](https://web.whatsapp.com)).\n* Waits for the user to scan the QR code and log in.\n* Sends a series of messages to a specified chat, demonstrating message automation.\n* Ends with a fun message to inform the recipient that it's just a demo project (Optional).\n\n## How to Use\n\n1. Clone the repository and install dependencies:\n\n   ```bash\n   git clone https://github.com/sunjay-dev/whatsapp-bot-with-puppeteer.git\n   cd whatsapp-bot-with-puppeteer\n   npm install\n   ```\n\n2. Run the script:\n\n   ```bash\n   node script.js\n   ```\n\n3. When WhatsApp Web opens:\n\n   * Scan the QR code using your phone.\n   * Press Enter on terminal.\n   * Let the script automatically send messages after login.\n\n---\n\n### If Not Using Windows, Do This Instead\n\nThis script uses the Windows Chrome path by default:\n\n```js\nconst options = {\n    headless: false, // Set to true to run in the background\n    executablePath: 'C:\\\\Program Files\\\\Google\\\\Chrome\\\\Application\\\\chrome.exe', // Replace with path to your Chrome\n};\n```\n\n### 🛠️ How to Find the Path to Chrome\n\nDepending on your operating system, the Chrome path will be different:\n\n* **On Windows:**\n\n  ```\n  C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe\n  ```\n\n  \u003e Right-click the Chrome shortcut → **Properties** → copy the path from the **Target** field.\n\n* **On macOS:**\n\n  ```bash\n  /Applications/Google\\ Chrome.app/Contents/MacOS/Google\\ Chrome\n  ```\n\n* **On Linux:**\n  Run this command in the terminal:\n\n  ```bash\n  which google-chrome\n  ```\n\nOnce you find the correct path, update the `executablePath` value in your script accordingly.\n\n---\n\n## Important Note\n\nThis script is for **educational and demonstrative purposes only**. Use automation responsibly and always respect the terms of service of any platform you interact with.\n\n---\n\n## Contributing\n\nFeel free to contribute by opening issues or submitting pull requests.\n\n---\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsunjay-dev%2Fwhatsapp-bot-with-puppeteer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsunjay-dev%2Fwhatsapp-bot-with-puppeteer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsunjay-dev%2Fwhatsapp-bot-with-puppeteer/lists"}