make your friend mad at you by sending him unlimited whatsapp messeges

 from selenium.webdriver.support.ui import Select

from selenium.webdriver.common.keys import Keys
from selenium import webdriver
import time
import pyautogui
notn = 0
path = 1
print('after you have given the informations like the messege you want to sent and how many times you want to send it you will have only 30 seconds i repeat you will have only 30 seconds to scan the qr code and go to the whatsapp contact where you want to send the messeges after you have made it in 30 seconds the messeges will start to be written and sent automatically but you should not close or minimize the whatsapp\n make sure you have chrome browser of version 85 or else it will not work!!!!\n')
askformeet = "what do you want to send??\n"
classurl = input(askformeet)
ti = "how many times the messege should be sent??\n"
ins = input(ti)
browser = webdriver.Chrome('D:\\chromedriver.exe')
browser.get('https://web.whatsapp.com/')
inm = int(ins)
time.sleep(15)
notn = 0
while notn <=inm:
    sendmsg = browser.find_element_by_xpath('//*[@id="main"]/footer/div[1]/div[2]/div/div[2]')
    sendmsg.send_keys(classurl)
    sendmsg.send_keys(Keys.ENTER)
    time.sleep(1)

    
    notn = notn+1

Comments