Advertisement
coinwalk

snowybot

Jul 9th, 2024
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 3.10 KB | None | 0 0
  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. sys.setrecursionlimit(1000000000)
  15. service = Service(executable_path="/snap/bin/geckodriver")
  16. options = webdriver.FirefoxOptions()
  17. options.add_argument("--headless")
  18. driver = webdriver.Firefox(service=service, options=options)
  19. print("please wait loading page and login")
  20. driver.get("https://just-dice.com")
  21. time.sleep(20)
  22. driver.find_element(By.CSS_SELECTOR, "a.fancybox-item.fancybox-close").click()
  23. time.sleep(5)
  24. driver.find_element(By.LINK_TEXT, "Account").click()
  25. time.sleep(2)
  26. driver.find_element(By.ID, "myuser").clear()
  27. driver.find_element(By.ID, "myuser").send_keys("USERNAME")
  28. time.sleep(0.01)
  29. driver.find_element(By.ID, "mypass").clear()
  30. driver.find_element(By.ID, "mypass").send_keys("PASSWORD")
  31. time.sleep(0.01)
  32. driver.find_element(By.ID, "myok").click()
  33. time.sleep(20)
  34. print("logged in")
  35. belance = driver.find_element(By.ID, "pct_balance").get_attribute("value")
  36. freather = 0.0
  37. nomber = (float(belance)/14400000)
  38. bogus = f"{nomber:.8f}"
  39. base = float(bogus)
  40. fumble = base
  41. tens = (base*10)
  42. sevens = (base*6.9)
  43. eights = (base*7.9)
  44. fives = (base*4.9)
  45. gold = driver.find_element(By.ID, "pct_balance").get_attribute("value")
  46. good = ((math.floor(float(gold)/tens))*tens)
  47. food = ((math.floor(float(gold)/tens))*tens)
  48. time.sleep(0.2)
  49. print("should see bets")
  50.  
  51. def go():
  52.     global nomber
  53.     global bogus
  54.     global base
  55.     global tens
  56.     global sevens
  57.     global eights
  58.     global fives
  59.     balance = driver.find_element(By.ID, "pct_balance").get_attribute("value")
  60.     global fumble
  61.     global freather
  62.     global good
  63.     global gold
  64.     global belance
  65.     global food
  66.     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))):
  67.         fumble = float(fumble)*2
  68.         freather = float(balance)
  69.     if ((float(balance)>=float(good)+tens) and (float(balance)<(((math.floor(float(balance)/tens))*tens)+sevens))):
  70.         nomber = (float(balance)/14400000)
  71.         bogus = f"{nomber:.8f}"
  72.         base = float(bogus)
  73.         fumble = base
  74.         tens = (base*10)
  75.         sevens = (base*6.9)
  76.         eights = (base*7.9)
  77.         freather = 0.0
  78.         good = ((math.floor(float(balance)/tens))*tens)
  79.     if ((float(balance))>(float(gold)*24000)):
  80.         sys.exit()
  81.  
  82.     time.sleep(0.1)
  83.     number = float(fumble)
  84.     rounded_number = f"{number:.8f}"
  85.     driver.find_element(By.ID, "pct_chance").clear()
  86.     driver.find_element(By.ID, "pct_chance").send_keys("49.5000")
  87.     driver.find_element(By.ID, "pct_bet").clear()
  88.     driver.find_element(By.ID, "pct_bet").send_keys(rounded_number)
  89.     driver.find_element(By.ID, "a_lo").click()
  90.     time.sleep(0.8)
  91.     go()
  92.  
  93. if (1==1):
  94.     go()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement