This bot automatically scrapes hackathon listings from Devfolio, sends notifications to a WhatsApp group, and stores the information in a MongoDB database.
- Scrapes hackathon listings from Devfolio
- Sends notifications to a WhatsApp group
- Stores hackathon information in MongoDB
- Runs on a schedule to check for new hackathons regularly
- Node.js
- Express.js
- Axios
- Cheerio
- @whiskeysockets/baileys (for WhatsApp integration)
- MongoDB
- node-schedule
-
Clone the repository:
git clone https://github.com/anshaneja5/hackathon-wa-bot.git
-
Install dependencies:
npm install
-
Set up environment variables: Create a
.env
file in the root directory and add the following:URI=your_mongodb_uri GROUP_ID=your_whatsapp_group_id
-
Run the bot:
node server.js
- The bot establishes a connection to WhatsApp using the Baileys library.
- It connects to a MongoDB database to store hackathon information.
- A scraping job is scheduled to run at regular intervals.
- The bot scrapes hackathon listings from Devfolio.
- For each new hackathon found:
- A message is sent to the specified WhatsApp group.
- The hackathon information is stored in the MongoDB database.
Contributions are welcome! Please feel free to submit a Pull Request.
This project is open source and available under the MIT License.
For any queries or suggestions, please open an issue on this repository.