Advertisement
coinwalk

snowybot python

Mar 29th, 2024
810
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.  
  7. try:
  8.     import selenium
  9. except ImportError:
  10.     subprocess.check_call([sys.executable, "-m", "pip", "install", 'selenium'])
  11. finally:
  12.     import selenium
  13.  
  14. from selenium import webdriver
  15. from selenium.webdriver.common.by import By
  16. from selenium.webdriver.support.ui import Select
  17. from selenium.common.exceptions import NoSuchElementException
  18. import time, re, math
  19. from decimal import Decimal
  20. from selenium.webdriver.firefox.options import Options
  21.  
  22. options = Options()
  23. options.add_argument("--headless")
  24. driver = webdriver.Firefox(options=options)
  25. print("please wait loading page and login")
  26. driver.get("https://just-dice.com")
  27. time.sleep(20)
  28. driver.find_element(By.CSS_SELECTOR, "a.fancybox-item.fancybox-close").click()
  29. time.sleep(5)
  30. driver.find_element(By.LINK_TEXT, "Account").click()
  31. time.sleep(2)
  32. driver.find_element(By.ID, "myuser").clear()
  33. driver.find_element(By.ID, "myuser").send_keys("iamsnow")
  34. time.sleep(0.01)
  35. driver.find_element(By.ID, "mypass").clear()
  36. driver.find_element(By.ID, "mypass").send_keys("future")
  37. time.sleep(0.01)
  38. driver.find_element(By.ID, "myok").click()
  39. time.sleep(20)  
  40. print("logged in")
  41. freather = 0.0 
  42. fumble = 0.00000001
  43. fart = 1
  44. base = 0.00000001
  45. tens = (base*10)
  46. sevens = (base*6.9)
  47. eights = (base*7.1)
  48. gold = driver.find_element(By.ID, "pct_balance").get_attribute("value")
  49. good = ((math.floor(float(gold)/tens))*tens)
  50. print("should see bets")
  51.  
  52. def go():
  53.     global base
  54.     global tens
  55.     global sevens
  56.     global eights
  57.     balance = driver.find_element(By.ID, "pct_balance").get_attribute("value")
  58.     global fumble
  59.     global freather
  60.     global good
  61.     global fart
  62.     global gold
  63.     if ((float(balance)>(((math.floor(float(balance)/tens))*tens)+sevens)) and (float(balance)<(((math.floor(float(balance)/tens))*tens)+eights)) and (float(balance)>float(good)) and (not (float(balance)==freather))):
  64.         fumble = float(fumble)*2
  65.         freather = float(balance)
  66.     if ((float(balance)>(((math.floor(float(balance)/tens))*tens)+sevens)) and (float(balance)<(((math.floor(float(balance)/tens))*tens)+eights)) and (float(balance)<float(good)) and (not (float(balance)==freather))):
  67.         fumble = float(fumble)*2
  68.         fart = 0
  69.         freather = float(balance)
  70.     if ((float(balance)>=(float(good)+(tens*fart))) and (float(balance)<(((math.floor(float(balance)/tens))*tens)+sevens))):
  71.         fumble = base
  72.         freather = 0.0
  73.         fart = 1
  74.         good = ((math.floor(float(balance)/tens))*tens)
  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