This project automates the process of sending birthday wishes via WhatsApp using Selenium and Python. It interacts with WhatsApp Web to send customized birthday messages to contacts whose birthdays are on the current date. Additionally, it provides a convenient way to schedule the execution of the script using Windows Task Scheduler.
- Sends personalized birthday messages to contacts on WhatsApp.
- Utilizes Selenium for web automation.
- Easy customization of message templates using
messages.txt
. - Includes a
taskscript.bat
file for scheduling execution with Windows Task Scheduler. - Utilizes
main.py
for the main Python script. - Add
BDayBotDataset.csv
for storing date of birth information.
- Python 3.x installed on your system.
- Google Chrome browser installed.
- ChromeDriver executable in PATH or current directory. (Download from ChromeDriver Downloads)
- WhatsApp Web logged in and authenticated on the Chrome browser.
- Clone or download the repository to your local machine.
- Update the message templates in
messages.txt
with your customized birthday wishes. - Update
BDayBotDataset.csv
with the date of birth information of your contacts. - Run the
main.py
script using the commandpython main.py
. - Optionally, schedule the script to run automatically using Windows Task Scheduler by executing
taskscript.bat
.
messages.txt
: Contains message templates for birthday wishes. Customize these messages as per your preference.taskscript.bat
: Batch script to execute the Python script. Edit this script to specify the path to your Python executable and the location ofmain.py
.BDayBotDataset.csv
: CSV file containing date of birth information of contacts. Format: name, DOB (DD-MM-YYYY) without any headings.
- Ensure that you have an active internet connection throughout the execution of the script.
- This script uses automation and may be against WhatsApp's terms of service. Use it responsibly and at your own risk.
- Make sure to respect privacy and only send messages to contacts who are comfortable receiving them.
Contributions are welcome! Feel free to submit pull requests or open issues for any bugs or feature requests.
This project is licensed under the Apache License 2.0.