Advertisement
coinwalk

ultimate snowybot python

Jan 3rd, 2024
861
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 2.33 KB | None | 0 0
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. import sys
  4. import json5
  5. import json
  6. from selenium import webdriver
  7. from selenium.webdriver.common.by import By
  8. from selenium.webdriver.support.ui import Select
  9. from selenium.common.exceptions import NoSuchElementException
  10. import time, re, math
  11. from selenium.webdriver.firefox.options import Options
  12.  
  13.  
  14. sys.setrecursionlimit(1000000000)
  15. options = Options()
  16. options.add_argument("--headless")
  17. driver = webdriver.Firefox(options=options)
  18. print("please wait loading page then login")
  19. driver.get("https://just-dice.com")
  20. time.sleep(10)
  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. print("logging in")
  33. time.sleep(20)  
  34. freather = 0.0
  35. fran = float(driver.find_element(By.ID, "pct_balance").get_attribute("value"))
  36. james = float(driver.find_element(By.ID, "pct_balance").get_attribute("value"))
  37. base = (fran/144000)
  38. tens = (base*10)
  39. sevens = (base*6.9)
  40. eights = (base*7.9)
  41. fumble = base
  42. print("should see bets now")
  43.  
  44. def go():
  45.     global fran
  46.     global base
  47.     global tens
  48.     global eights
  49.     global sevens
  50.     global fumble
  51.     global freather
  52.     global james
  53.     balance = float(driver.find_element(By.ID, "pct_balance").get_attribute("value"))
  54.     if ((balance>(((math.floor(balance/tens))*tens)+sevens)) and (balance<(((math.floor(balance/tens))*tens)+eights)) and (not (balance==freather))):
  55.         fumble = (float(fumble)*2)
  56.         freather = float(balance)
  57.     if ((fumble>=tens) and (balance>=james) and (balance<(((math.floor(balance/tens))*tens)+sevens))):
  58.         fumble = base
  59.         freather = 0.0
  60.         james = float(balance)
  61.     time.sleep(0.1)
  62.     driver.find_element(By.ID, "pct_chance").clear()
  63.     driver.find_element(By.ID, "pct_chance").send_keys("49.5000")
  64.     driver.find_element(By.ID, "pct_bet").clear()
  65.     driver.find_element(By.ID, "pct_bet").send_keys(format(fumble, ".8f"))
  66.     driver.find_element(By.ID, "a_lo").click()
  67.     print("bets betsize >>", format(fumble, ".8f"))
  68.     time.sleep(0.7)
  69.     go()
  70.    
  71. if (1==1):
  72.     go()
  73.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement