forked from bhattsameer/Bombers
-
Notifications
You must be signed in to change notification settings - Fork 2
/
wbomb.py
34 lines (27 loc) · 1.02 KB
/
wbomb.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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()
msg_box = driver.find_element_by_class_name('_2bXVy')
for i in range(count):
msg_box.send_keys(msg)
button = driver.find_element_by_class_name('_2lkdt')
button.click()
print('Bombing Complete!!')
banner()
main()