Skip to content

Latest commit

 

History

History
45 lines (34 loc) · 1.88 KB

README.md

File metadata and controls

45 lines (34 loc) · 1.88 KB

Automated WhatsApp Message Sender using Python and Selenium WebDriver

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.

Prerequisites

  • Python 3.x
  • Selenium WebDriver for Python
  • Chrome browser
  • ChromeDriver executable

Installation

  1. Clone or download the repository to your local machine.
git clone https://github.com/Venkateshvenki404224/whatapp-messager-script.git
cd whatapp-messager-script
  1. Install the necessary dependencies by running the following command in your terminal or command prompt.
pip install -r requirements.txt
  1. Download the appropriate ChromeDriver executable for your operating system from here and save it to the same directory as the script.

Usage

  1. 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.

image

image

image

  1. Run the program using the following command.
python3 script.py

Disclaimer

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.