-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcsgo500train.py
44 lines (31 loc) · 1.22 KB
/
csgo500train.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
from selenium import webdriver
from selenium.webdriver.common.action_chains import ActionChains
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.chrome.options import Options
import time
import sys
from subprocess import call
chrome_options = Options()
chrome_options.add_experimental_option("debuggerAddress", "127.0.0.1:9222")
#Change chrome driver path accordingly
chrome_driver = "C:\Program Files (x86)\chromedriver.exe"
driver = webdriver.Chrome(chrome_driver, options=chrome_options)
driver.get("https://csgo500.com/wheel")
time.sleep(2)
trainicon = driver.find_element_by_class_name("hypetrain-icon")
bux_count = driver.find_element_by_id("balance")
actions = ActionChains(driver)
actions.click(trainicon)
for i in range(500000):
actions.perform()
print('\n\nSuccessfully joined the train!\n')
count = (bux_count.text)
int_count = driver.find_element_by_id("balance")
int_count = int(count.replace(',', ''))
onebuxprice = int(6)
bux_price = int()
bux_price = (int_count*onebuxprice)/10000
bux_price_str =str(bux_price)
print('Current Balance: ' + count +' Bux , In Usd: '+ bux_price_str+'\n')
call(["python", "Countdown.py"])
time.sleep(1)