This Python script demonstrates how to use the Selenium WebDriver library to automate sending messages to multiple contacts on WhatsApp web. The script uses XPath expressions to locate elements on the web page, and various methods provided by the WebDriver library to interact with those elements.
- Python 3.x
- Selenium WebDriver for Python
- Chrome browser
- ChromeDriver executable
- Clone or download the repository to your local machine.
git clone https://github.com/Venkateshvenki404224/whatapp-messager-script.git
cd whatapp-messager-script
- Install the necessary dependencies by running the following command in your terminal or command prompt.
pip install -r requirements.txt
- Download the appropriate ChromeDriver executable for your operating system from here and save it to the same directory as the script.
-
Modify the following code to work on your machine.
- Provide the list of numbers that you want to send messages to in list format.
- Enter your WhatsApp contact number.
- Change the 'search_text' value in the find_element_by_xpath method to match the name you have given for your WhatsApp web page.
- Run the program using the following command.
python3 script.py
This script is for educational purposes only. Use it at your own risk and responsibility. The authors are not responsible for any misuse or damage caused by this script.