This is a simple Web WhatsApp Bot developed in python using Selenium. Selenium is used mainly for automating web applications for testing purposes, but is certainly not limited to just that. Boring web-based administration tasks can (and should!) be automated as well.
- Send a specific message to a particular contact at any time of the day
- One can send a single message to multiple contacts over a specific time
- Multiple messages to multiple contacts
- It offers a delay so that WhatsApp can detect your are sending a URL and show its pop-up description.
- It can search a contact from the list if the contact isn't present in the recent chats
- Change the message along with time in the mainBot.py
- You can add multiple messages
- The Script can also search for the contact in the new chat list and then send message if the contact is not found in the recent chat list.
Step 1: Install Selenium
$ pip3 install selenium
Step 2: Selenium requires a driver to interface with the chosen browser.
Step 3: Extract the downloaded driver onto a folder
Step 4: Set path variable to the environment. Paste this command to the terminal
$ export PATH=$PATH:/home/path/to/the/driver/folder/
Eg: $ export PATH=$PATH:/home/rahul/Desktop/whatsAppBot
Step 5: run mainBot.py using Python3
$ python3 mainBot.py