Make A WhatsApp Spammer

Posted by

A simple script that can be used for spamming  specific person or group on Whatsapp.

This code is written in Python and using Selenium. Selenium is a web automation framework used for testing purposes (… well, most of the time). You can read more about it here.


You will need the following to run this script-

1)Python3 installed in your system
2)chrome web browser with chrome webdriver

Installation Instructions

1) Installing Python3

Visit the following url for details on how to install Python 3 for various Operating systems

2) Installing pip3

apt install python3-pip

3) Installing Selenium and webdriver

Installing Selenium and ChromeDriver on Windows:

pip3 install selenium
pip install webdriver_manager


from selenium import webdriver
from time import sleep

driver = webdriver.Chrome()

name = input('Enter the name of user or group : ')
msg = input('Enter your message : ')
count = int(input('Enter the count : '))

input('Enter anything after scanning QR code')
user = driver.find_element_by_xpath('//span[@title = "{}"]'.format(name))

msg_box = driver.find_element_by_class_name('DuUXI')

for i in range(count):
button = driver.find_element_by_class_name('_2Ujuu')

  1. Save the file
  2. Open terminal and run the following command

Feel free to leave a comment below or reach me on Instagram @iamshubhamkumar__.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.