mirror of
https://github.com/bhattsameer/Bombers.git
synced 2023-08-10 21:12:53 +03:00
54e5c645b9
Updated the classname of message and send button in wbomb.py file
37 lines
1.1 KiB
Python
37 lines
1.1 KiB
Python
|
|
from selenium import webdriver
|
|
import os
|
|
def banner():
|
|
print('''
|
|
## ## ======= #### #### #### =======
|
|
\ \ #### / / # # ## ## / /\ \ / /\ \ # #
|
|
\ \ / /\ \ / / #====== ## ## / / \ \/ / \ \ #======
|
|
\ \/ / \ \/ / # # ## ## / / #### \ \ # #
|
|
#### #### ======= #### ## ## =======
|
|
''')
|
|
def main():
|
|
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 any key after scanning QR code')
|
|
|
|
user = driver.find_element_by_xpath('//span[@title = "{}"]'.format(name))
|
|
user.click()
|
|
|
|
# The classname of message box may vary.
|
|
msg_box = driver.find_element_by_class_name('_13mgZ')
|
|
|
|
for i in range(count):
|
|
msg_box.send_keys(msg)
|
|
# The classname of send button may vary.
|
|
button = driver.find_element_by_class_name('_3M-N-')
|
|
button.click()
|
|
print('Bombing Complete!!')
|
|
|
|
banner()
|
|
main()
|