Advertisement
coinwalk

snowybot-python

Jul 10th, 2024
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 3.28 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.  
  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. freather = 0
  38. belance = float(driver.find_element(By.ID, "pct_balance").get_attribute("value"))
  39. gold = float(driver.find_element(By.ID, "pct_balance").get_attribute("value"))
  40. base = (belance/40)
  41. fumble = base
  42. tens = (base*10)
  43. sevens = (base*6.9)
  44. eights = (base*7.9)
  45. fives = (base*4.9)
  46. good = ((math.floor(gold/tens))*tens)
  47. time.sleep(0.2)
  48. print("should see bets")
  49.  
  50. def go():
  51.     global freather, base, fumble, gold, tens, good, sevens, eights, food
  52.     balance = float(driver.find_element(By.ID, "pct_balance").get_attribute("value"))
  53.     if ((balance>(((math.floor(balance/tens))*tens)+sevens)) and (balance<(((math.floor(balance/tens))*tens)+eights)) and (balance>freather)):
  54.         fumble *= 2
  55.         freather = balance
  56.     if ((balance>(((math.floor(balance/tens))*tens)+sevens)) and (balance<(((math.floor(balance/tens))*tens)+eights)) and (balance<freather)):
  57.         fumble *= 2
  58.         freather = balance
  59.     if (((balance-(fumble*4))<=0) and (balance>(((math.floor(balance/tens))*tens)+eights))):
  60.         fumble = base
  61.         freather = 0
  62.     if (((balance-(fumble*4))<=0) and (balance<(((math.floor(balance/tens))*tens)+sevens))):
  63.         fumble = base
  64.         freather = 0
  65.     if (((balance-(fumble*4))<=0) and (balance>(((math.floor(balance/tens))*tens)+sevens)) and (balance<(((math.floor(balance/tens))*tens)+eights))):
  66.         fumble = base*2
  67.         freather = 0
  68.     if ((balance>=(good+tens)) and (balance<(((math.floor(balance/tens))*tens)+sevens))):
  69.         fumble = base
  70.         freather = 0
  71.         good = ((math.floor(balance/tens))*tens)
  72.     if (balance>(gold*5)):
  73.         sys.exit()
  74.  
  75.     time.sleep(0.1)
  76.     number = float(fumble)
  77.     rounded_number = f"{number:.8f}"
  78.     driver.find_element(By.ID, "pct_chance").clear()
  79.     driver.find_element(By.ID, "pct_chance").send_keys("49.5000")
  80.     driver.find_element(By.ID, "pct_bet").clear()
  81.     driver.find_element(By.ID, "pct_bet").send_keys(rounded_number)
  82.     driver.find_element(By.ID, "a_lo").click()
  83.     time.sleep(0.8)
  84.     go()
  85.  
  86. if (1==1):
  87.     go()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement