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.

Prerequisites

You will need the following to run this script-

1)Python3 installed in your system
2)chrome web browser with chrome webdriver
3)pip3
4)selenium

Installation Instructions

1) Installing Python3

Visit the following url for details on how to install Python 3 for various Operating systems https://realpython.com/installing-python/#step-1-download-the-python-3-installer

2) Installing pip3

cd
apt install python3-pip

3) Installing Selenium and webdriver

Installing Selenium and ChromeDriver on Windows: https://spyboy.blog/2020/12/01/installing-selenium-and-chromedriver-on-windows/

cd
pip3 install selenium
pip install webdriver_manager

Deployment

from selenium import webdriver
from time import sleep

driver = webdriver.Chrome()
driver.get('https://web.whatsapp.com/')

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))
user.click()

msg_box = driver.find_element_by_class_name('DuUXI')

for i in range(count):
msg_box.send_keys(msg)
button = driver.find_element_by_class_name('_2Ujuu')
button.click()

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

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:

WordPress.com Logo

You are commenting using your WordPress.com 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.