How To Make A WhatsApp Spammer
A simple script that can be used for spamming a 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.
Pre-requisites
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 web driver
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()
Save the whatsappspam.py file
Open the terminal and run the following command
python3 whatsappspam.py
Post a Comment