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("madman")
- time.sleep(0.01)
- driver.find_element(By.ID, "mypass").clear()
- driver.find_element(By.ID, "mypass").send_keys("future2000")
- time.sleep(0.01)
- driver.find_element(By.ID, "myok").click()
- time.sleep(20)
- print("logged in")
- original = float(driver.find_element(By.ID, "pct_balance").get_attribute("value"))
- love = 0.00001
- nice = love
- tens = (love * 10)
- hundreds = (love * 100)
- sevens = (love * 6.9)
- eights = (love * 7.9)
- snowie = 0
- funny = False
- lamb = 2
- silvery = original
- awesome = ((math.floor(original / tens)) * tens)
- joke = 144000000
- goldern = 4
- print("should see bets")
- def go():
- global original
- global love
- global nice
- global tens
- global sevens
- global eights
- global snowie
- global funny
- global lamb
- global awesome
- global joke
- global goldern
- global silvery
- global hundreds
- belance = float(driver.find_element(By.ID, "pct_balance").get_attribute("value"))
- coin = belance-original
- snow = round(coin, 8)
- bull = original-belance
- slob = round(bull, 8)
- if (snow>=0):
- print("winning amount profit")
- print(snow)
- if (bull>=0):
- print("lossing amount losses")
- print(slob)
- if ((belance>(((math.floor(belance/tens))*tens)+sevens)) and (belance<(((math.floor(belance/tens))*tens)+eights)) and (not(belance==snowie))):
- nice = nice*2
- snowie = (belance)
- if (((belance-(nice*2))<=0) and (belance<(((math.floor(belance/tens))*tens)+sevens))):
- nice = love
- snowie = 0
- silvery = belance
- goldern = 2
- funny = True
- joke = ((math.ceil(belance/tens))*tens)
- if ((nice>=(love*goldern)) and (funny==False)):
- joke = ((math.ceil(belance/hundreds))*hundreds)
- funny = True
- if ((nice>=(love*goldern)) and (funny==True) and (belance>=joke) and (belance<(((math.floor(belance/tens))*tens)+sevens))):
- nice = love
- snowie = 0
- goldern = 4
- silvery = belance
- funny = False
- joke = 144000000
- if (belance<silvery):
- silvery = belance
- if (belance >= (original * 144000)):
- print("winner winner chicken dinner")
- return
- time.sleep(0.1)
- number = float(nice)
- 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(0.8)
- go()
- if (1==1):
- go()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement