Advertisement
coinwalk

best snowybot

Jan 3rd, 2024
603
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 2.04 KB | None | 0 0
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3.  
  4. from selenium import webdriver
  5. from selenium.webdriver.common.by import By
  6. from selenium.webdriver.support.ui import Select
  7. from selenium.common.exceptions import NoSuchElementException
  8. import time, re, math
  9. from decimal import Decimal
  10. from selenium.webdriver.firefox.options import Options
  11.  
  12. options = Options()
  13. options.add_argument("--headless")
  14. driver = webdriver.Firefox(options=options)
  15. print("please wait loading page and login")
  16. driver.get("https://just-dice.com")
  17. time.sleep(20)
  18. driver.find_element(By.CSS_SELECTOR, "a.fancybox-item.fancybox-close").click()
  19. time.sleep(5)
  20. driver.find_element(By.LINK_TEXT, "Account").click()
  21. time.sleep(2)
  22. driver.find_element(By.ID, "myuser").clear()
  23. driver.find_element(By.ID, "myuser").send_keys("USERNAME")
  24. time.sleep(0.01)
  25. driver.find_element(By.ID, "mypass").clear()
  26. driver.find_element(By.ID, "mypass").send_keys("PASSWORD")
  27. time.sleep(0.01)
  28. driver.find_element(By.ID, "myok").click()
  29. time.sleep(20)  
  30. print("logged in")
  31. freather = 0.0 
  32. fumble = 0.1
  33. print("should see bets")
  34.  
  35. def go():
  36.     base = 0.1
  37.     tens = (base*10)
  38.     sevens = (base*6.9)
  39.     eights = (base*7.1)
  40.     balance = driver.find_element(By.ID, "pct_balance").get_attribute("value")
  41.     global fumble
  42.     global freather
  43.     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))):
  44.         fumble = float(fumble)*2
  45.         freather = float(balance)
  46.     if ((fumble>=tens) and (float(balance)<(((math.floor(float(balance)/tens))*tens)+sevens))):
  47.         fumble = base
  48.         freather = 0.0
  49.     time.sleep(0.1)
  50.     driver.find_element(By.ID, "pct_chance").clear()
  51.     driver.find_element(By.ID, "pct_chance").send_keys("49.5000")
  52.     driver.find_element(By.ID, "pct_bet").clear()
  53.     driver.find_element(By.ID, "pct_bet").send_keys(float(fumble))
  54.     driver.find_element(By.ID, "a_lo").click()
  55.     time.sleep(0.8)
  56.     go()
  57.    
  58. if (1==1):
  59.     go()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement