Set up selenium before using it. Save your message and numbers in a file.
Make sure your numbers are in the given format: <countrycode><number>
. For example, the number +91-12345-67890
will be 911234567890
.
The command line arguments for this script is:
usage: whatsapp_sender.py [-h] [-nf --numbersFile] [-mf --msgFile]
[-ns --numberSep] [-d [--delay]]
Send messages to users in bulk through WhatsApp
optional arguments:
-h, --help show this help message and exit
-nf --numbersFile Path to file with all the numbers
-mf --msgFile Path to file with the message
-ns --numberSep Seperator for the numbers
-d [--delay] Delay between each step. Adjust based on your internet
speed.
The -d
or --delay
parameter is optional and is set to 2 seconds by default.