Skip to content

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.

Notifications You must be signed in to change notification settings

Venkateshvenki404224/whatsapp-messanger-script

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

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.

About

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.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages