-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathroll.py
60 lines (45 loc) · 1.32 KB
/
roll.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
from selenium import webdriver
from time import sleep
import config
import sys
import time
import json
username = config.username
password = config.password
print(' ')
print(' ')
print(' ')
print(' ')
print('an auto roller for aimgods by max')
print('hope ya win a mouse or sumn :)')
# Add the file path for your Chrome Driver or use PATH
driver = webdriver.Chrome('chromedriver.exe')
driver.get("https://aimgods.finalmouse.com/goldenKey")
username_button = driver.find_element_by_xpath(
"/html/body/div/div/div/div/div/form/input[1]"
)
username_button.send_keys(username)
password_button = driver.find_element_by_xpath(
"/html/body/div/div/div/div/div/form/input[2]"
)
password_button.send_keys(password)
time.sleep(0.001)
login_button = driver.find_element_by_xpath(
"/html/body/div/div/div/div/div/form/button"
)
login_button.click()
time.sleep(2)
driver.get("https://aimgods.finalmouse.com/goldenKey")
time.sleep(2)
while True:
use_golden_key_button = driver.find_element_by_xpath(
"/html/body/div/div/div/div/div/div[1]/div[1]/div[1]/div/button"
)
use_golden_key_button.click()
# sleep for 30 seconds while the roll spins
time.sleep(30)
play_again = driver.find_element_by_xpath(
'//*[@id="root"]/div/div/div/div/div[1]/button'
)
play_again.click()
time.sleep(2)