Advertisement
coinwalk

trial

May 13th, 2024
640
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. from selenium import webdriver
  9. from selenium.webdriver.common.by import By
  10. from selenium.webdriver.support.ui import Select
  11. from selenium.common.exceptions import NoSuchElementException
  12. from selenium.webdriver.firefox.service import Service
  13. sys.setrecursionlimit(1000000000)
  14. service = Service(executable_path="/snap/bin/geckodriver")
  15. options = webdriver.FirefoxOptions()
  16. options.add_argument("--headless")
  17. driver = webdriver.Firefox(service=service, options=options)
  18. print("please wait loading page and login")
  19. driver.get("https://just-dice.com")
  20. time.sleep(20)
  21. driver.find_element(By.CSS_SELECTOR, "a.fancybox-item.fancybox-close").click()
  22. time.sleep(5)
  23. driver.find_element(By.LINK_TEXT, "Account").click()
  24. time.sleep(2)
  25. driver.find_element(By.ID, "myuser").clear()
  26. driver.find_element(By.ID, "myuser").send_keys("USERNAME")
  27. time.sleep(0.01)
  28. driver.find_element(By.ID, "mypass").clear()
  29. driver.find_element(By.ID, "mypass").send_keys("PASSWORD")
  30. time.sleep(0.01)
  31. driver.find_element(By.ID, "myok").click()
  32. time.sleep(20)  
  33. print("logged in")
  34. belance = driver.find_element(By.ID, "pct_balance").get_attribute("value")
  35. freather = 0.0  
  36. fumble = (belance/2400)
  37. fart = 1
  38. base = (belance/2400)
  39. tens = (base*10)
  40. sevens = (base*6.9)
  41. eights = (base*7.9)
  42. gold = driver.find_element(By.ID, "pct_balance").get_attribute("value")
  43. good = ((math.floor(float(gold)/tens))*tens)
  44. print("should see bets")
  45.  
  46. def go():
  47.     global base
  48.     global tens
  49.     global sevens
  50.     global eights
  51.     balance = driver.find_element(By.ID, "pct_balance").get_attribute("value")
  52.     global fumble
  53.     global freather
  54.     global good
  55.     global fart
  56.     global gold
  57.     global belance
  58.     if ((float(balance)>(((math.floor(float(balance)/tens))*tens)+sevens)) and (float(balance)<(((math.floor(float(balance)/tens))*tens)+eights)) and (not (float(balance)==freather))):
  59.         fumble = float(fumble)*2
  60.         freather = float(balance)
  61.     if ((((float(balance)/120)-fumble)<=0) and (float(balance)<(((math.floor(float(balance)/tens))*tens)+sevens))):
  62.         fumble = base
  63.         freather = 0.0
  64.         good = ((math.floor(float(balance)/tens))*tens)
  65.     if ((((float(balance)/120)-fumble)<=0) and (float(balance)>(((math.floor(float(balance)/tens))*tens)+eights))):
  66.         fumble = base
  67.         freather = 0.0
  68.         good = ((math.floor(float(balance)/tens))*tens)
  69.     if ((((float(balance)/120)-fumble)<=0) and (float(balance)>(((math.floor(float(balance)/tens))*tens)+sevens)) and (float(balance)<(((math.floor(float(balance)/tens))*tens)+eights))):
  70.         fumble = base*2
  71.         freather = float(balance)
  72.         good = ((math.floor(float(balance)/tens))*tens)
  73.     if ((((float(belance))-(fumble*240))<=0) and (float(balance)<(((math.floor(float(balance)/tens))*tens)+sevens))):
  74.         fumble = base
  75.         freather = 0.0
  76.         good = ((math.floor(float(balance)/tens))*tens)
  77.     if ((((float(belance))-(fumble*240))<=0) and (float(balance)>(((math.floor(float(balance)/tens))*tens)+eights))):
  78.         fumble = base
  79.         freather = 0.0
  80.         good = ((math.floor(float(balance)/tens))*tens)
  81.     if ((((float(belance))-(fumble*240))<=0) and (float(balance)>(((math.floor(float(balance)/tens))*tens)+sevens)) and (float(balance)<(((math.floor(float(balance)/tens))*tens)+eights))):
  82.         fumble = base*2
  83.         freather = float(balance)
  84.         good = ((math.floor(float(balance)/tens))*tens)
  85.     time.sleep(0.1)
  86.     number = float(fumble)
  87.     rounded_number = f"{number:.8f}"
  88.     driver.find_element(By.ID, "pct_chance").clear()
  89.     driver.find_element(By.ID, "pct_chance").send_keys("49.5000")
  90.     driver.find_element(By.ID, "pct_bet").clear()
  91.     driver.find_element(By.ID, "pct_bet").send_keys(rounded_number)
  92.     driver.find_element(By.ID, "a_lo").click()
  93.     time.sleep(0.8)
  94.     go()
  95.    
  96. if (1==1):
  97.     go()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement