A simple bot to send messages to your friends on WhatsApp without using the official API.
The bot allows you to schedule a message on a specific day of the month and send it automatically.
- On the first run, the bot will ask you to scan the WhatsApp Web QR code.
- The session data will be saved locally.
- On subsequent runs, the bot will keep the session active and ready to send messages.
The project requires Selenium and WebDriver Manager.
Install the dependencies with:
pip install selenium
pip install webdriver-manager
On Windows it is recommended to use:
python -m pip install selenium webdriver-manager
Note: You do not need to install datetime, time, urllib.parse, or os since they are part of the Python standard library.
Run the bot Run the script directly with:
python WhatsappBot.py
Build executable (.exe) To create an executable file with PyInstaller:
pyinstaller --noconsole --onefile .\WhatsappBot.py