Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python
- # -*- coding: utf-8 -*-
- import subprocess
- import sys
- import json
- import time, re, math
- from selenium import webdriver
- from selenium.webdriver.common.by import By
- from selenium.webdriver.support.ui import Select
- from selenium.common.exceptions import NoSuchElementException
- from selenium.webdriver.firefox.service import Service
- sys.setrecursionlimit(1000000000)
- service = Service(executable_path="/snap/bin/geckodriver")
- options = webdriver.FirefoxOptions()
- options.add_argument("--headless")
- driver = webdriver.Firefox(service=service, options=options)
- print("please wait loading page and login")
- driver.get("https://just-dice.com")
- time.sleep(20)
- driver.find_element(By.CSS_SELECTOR, "a.fancybox-item.fancybox-close").click()
- time.sleep(5)
- driver.find_element(By.LINK_TEXT, "Account").click()
- time.sleep(2)
- driver.find_element(By.ID, "myuser").clear()
- driver.find_element(By.ID, "myuser").send_keys("USERNAME")
- time.sleep(0.01)
- driver.find_element(By.ID, "mypass").clear()
- driver.find_element(By.ID, "mypass").send_keys("PASSWORD")
- time.sleep(0.01)
- driver.find_element(By.ID, "myok").click()
- time.sleep(20)
- print("logged in")
- belance = float(driver.find_element(By.ID, "pct_balance").get_attribute("value"))
- nomber = (belance/1000)
- rounded_nomber = f"{nomber:.8f}"
- fumble = float(rounded_nomber)
- base = float(rounded_nomber)
- tens = (base*10)
- sevens = (base*6.9)
- eights = (base*7.9)
- sixes = (base*6)
- freather = 0.0
- bob = ((math.floor(belance/tens))*tens)
- joe = ((math.floor(belance/tens))*tens)
- print("should see bets")
- def go():
- global base
- global tens
- global sixes
- global sevens
- global eights
- global thimble
- global fumble
- global freather
- global belance
- global nomber
- global upper
- global downer
- global rounded_nomber
- global joe
- global bob
- balance = float(driver.find_element(By.ID, "pct_balance").get_attribute("value"))
- if ((balance>(((math.floor(balance/tens))*tens)+sevens)) and (balance<(((math.floor(balance/tens))*tens)+eights)) and (balance>freather)):
- fumble = float(fumble)*2
- freather = float(balance)
- if ((balance>(((math.floor(balance/tens))*tens)+sevens)) and (balance<(((math.floor(balance/tens))*tens)+eights)) and (balance<freather)):
- fumble = float(fumble)*2
- freather = float(balance)
- if (((balance/(balance/sixes))<=fumble) and (balance<bob) and (balance<(((math.floor(balance/tens))*tens)+sevens))):
- fumble = base
- freather = 0.0
- bob = ((math.ceil(balance/tens))*tens)
- if (((balance/(balance/sixes))<=fumble) and (balance>joe) and (balance<(((math.floor(balance/tens))*tens)+sevens))):
- fumble = base
- freather = 0.0
- bob = ((math.floor(balance/tens))*tens)
- joe = ((math.floor(balance/tens))*tens)
- if (balance<bob):
- bob = ((math.ceil(balance/tens))*tens)
- if (balance>joe):
- joe = ((math.floor(balance/tens))*tens)
- if (balance<fumble):
- print("lost all")
- sys.exit()
- if (balance>=(belance*1.024)):
- print("winner winner chiken dinner")
- sys.exit()
- number = float(fumble)
- rounded_number = f"{number:.8f}"
- driver.find_element(By.ID, "pct_chance").clear()
- driver.find_element(By.ID, "pct_chance").send_keys("49.5000")
- driver.find_element(By.ID, "pct_bet").clear()
- driver.find_element(By.ID, "pct_bet").send_keys(rounded_number)
- driver.find_element(By.ID, "a_lo").click()
- time.sleep(1.2)
- go()
- if (1==1):
- go()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement