A small script using Selenium and Chromedriver to automate the mass sending of WhatsApp messages.
- Clone the repository
- Make sure the chromedriver you have is up to date; if not, download the one for your OS here and extract it in this directory.
- Populate the messages and data folders as shown in the sample file
- Run the script!
python script.py -m [MESSAGE FILE NAME] -d [DATA FILE NAME]
For further information on the command line arguments, run
python script.py -h
Once the script is running, follow the process of linking the number you want to use to WhatsApp Web, as shown on the screen. You will (as of now) need to do this on every run of the script.
There are three supported ways of entering contact data in a row:
- phone, name, tag_id
- phone, name
- phone
tag_id is what decides which number gets which message template, if using multiple message templates as described in the messages/sample file.