Advertisement
coinwalk

trial divide

Aug 4th, 2024
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3.  
  4. import subprocess
  5. import sys
  6. import json
  7. import time, re, math
  8. import selenium
  9. from selenium import webdriver
  10. from selenium.webdriver.common.by import By
  11. from selenium.webdriver.support.ui import Select
  12. from selenium.common.exceptions import NoSuchElementException
  13. from selenium.webdriver.firefox.service import Service
  14.  
  15. sys.setrecursionlimit(1000000000)
  16. service = Service(executable_path= r"C:\geckodriver.exe")
  17. options = webdriver.FirefoxOptions()
  18. options.add_argument("--headless")
  19. options.binary_location = r'C:\Program Files\Mozilla Firefox\firefox.exe'
  20. driver = webdriver.Firefox(service=service, options=options)
  21. print("please wait loading page and login")
  22. driver.get("https://just-dice.com")
  23. time.sleep(20)
  24. driver.find_element(By.CSS_SELECTOR, "a.fancybox-item.fancybox-close").click()
  25. time.sleep(5)
  26. driver.find_element(By.LINK_TEXT, "Account").click()
  27. time.sleep(2)
  28. driver.find_element(By.ID, "myuser").clear()
  29. driver.find_element(By.ID, "myuser").send_keys("USERNAME")
  30. time.sleep(0.01)
  31. driver.find_element(By.ID, "mypass").clear()
  32. driver.find_element(By.ID, "mypass").send_keys("PASSWORD")
  33. time.sleep(0.01)
  34. driver.find_element(By.ID, "myok").click()
  35. time.sleep(20)
  36. print("logged in")
  37. belance = driver.find_element(By.ID, "pct_balance").get_attribute("value")
  38. freather = 0.0
  39. fumble = ((float(belance))/1440000)
  40. fart = 1
  41. base = ((float(belance))/1440000)
  42. tens = (base*10)
  43. sevens = (base*6.9)
  44. eights = (base*7.9)
  45. gold = driver.find_element(By.ID, "pct_balance").get_attribute("value")
  46. good = ((math.floor(float(gold)/tens))*tens)
  47. print("should see bets")
  48.  
  49. def go():
  50.     global base
  51.     global tens
  52.     global sevens
  53.     global eights
  54.     balance = driver.find_element(By.ID, "pct_balance").get_attribute("value")
  55.     global fumble
  56.     global freather
  57.     global good
  58.     global fart
  59.     global gold
  60.     global belance
  61.     if ((float(balance)>(((math.floor(float(balance)/tens))*tens)+sevens)) and (float(balance)<(((math.floor(float(balance)/tens))*tens)+eights)) and ((float(balance))<freather)):
  62.         fumble = float(fumble)*2
  63.         freather = float(balance)
  64.     if ((float(balance)>(((math.floor(float(balance)/tens))*tens)+sevens)) and (float(balance)<(((math.floor(float(balance)/tens))*tens)+eights)) and ((float(balance))>freather)):
  65.         fumble = float(fumble)*2
  66.         freather = float(balance)
  67.     if (((float(balance)>=((float(good))+tens))) and (float(balance)<(((math.floor(float(balance)/tens))*tens)+sevens))):
  68.         fumble = base
  69.         freather = 0.0
  70.         good = ((math.floor(float(balance)/tens))*tens)
  71.     if ((float(balance))>=144000.0):
  72.         exit()
  73.     time.sleep(0.1)
  74.     number = float(fumble)
  75.     rounded_number = f"{number:.8f}"
  76.     driver.find_element(By.ID, "pct_chance").clear()
  77.     driver.find_element(By.ID, "pct_chance").send_keys("49.5000")
  78.     driver.find_element(By.ID, "pct_bet").clear()
  79.     driver.find_element(By.ID, "pct_bet").send_keys(rounded_number)
  80.     driver.find_element(By.ID, "a_lo").click()
  81.     time.sleep(0.8)
  82.     go()
  83.  
  84. if (1==1):
  85.     go()  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement