Advertisement
coinwalk

snowybot.py

May 12th, 2024
919
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. import selenium
  7.  
  8. from selenium import webdriver
  9. from selenium.webdriver.common.by import By
  10. from selenium.webdriver.support.ui import Select
  11. from selenium.common.exceptions import NoSuchElementException
  12. import time, re, math
  13. from decimal import Decimal
  14. from selenium.webdriver.firefox.options import Options
  15.  
  16. options = Options()
  17. options.add_argument("--headless")
  18. driver = webdriver.Firefox(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("iamsnow")
  28. time.sleep(0.01)
  29. driver.find_element(By.ID, "mypass").clear()
  30. driver.find_element(By.ID, "mypass").send_keys("future")
  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. fumble = 0.00000001
  38. fart = 1
  39. base = 0.00000001
  40. tens = (base*10)
  41. sevens = (base*6.9)
  42. eights = (base*7.1)
  43. gold = driver.find_element(By.ID, "pct_balance").get_attribute("value")
  44. good = ((math.floor(float(gold)/tens))*tens)
  45. print("should see bets")
  46.  
  47. def go():
  48.     global base
  49.     global tens
  50.     global sevens
  51.     global eights
  52.     balance = driver.find_element(By.ID, "pct_balance").get_attribute("value")
  53.     global fumble
  54.     global freather
  55.     global good
  56.     global fart
  57.     global gold
  58.     global belance
  59.     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))):
  60.         fumble = float(fumble)*2
  61.         freather = float(balance)
  62.     if ((((float(balance)/12)-fumble)<=0) and (float(balance)<(((math.floor(float(balance)/tens))*tens)+sevens))):
  63.         fumble = base
  64.         freather = 0.0
  65.         good = ((math.floor(float(balance)/tens))*tens)
  66.     if ((((float(balance)/12)-fumble)<=0) and (float(balance)>(((math.floor(float(balance)/tens))*tens)+eights))):
  67.         fumble = base
  68.         freather = 0.0
  69.         good = ((math.floor(float(balance)/tens))*tens)
  70.     if ((((float(balance)/12)-fumble)<=0) and (float(balance)>(((math.floor(float(balance)/tens))*tens)+sevens)) and (float(balance)<(((math.floor(float(balance)/tens))*tens)+eights))):
  71.         fumble = base*2
  72.         freather = float(balance)
  73.         good = ((math.floor(float(balance)/tens))*tens)
  74.     if ((((float(belance))-(fumble*24))<=0) and (float(balance)<(((math.floor(float(balance)/tens))*tens)+sevens))):
  75.         fumble = base
  76.         freather = 0.0
  77.         good = ((math.floor(float(balance)/tens))*tens)
  78.     if ((((float(belance))-(fumble*24))<=0) and (float(balance)>(((math.floor(float(balance)/tens))*tens)+eights))):
  79.         fumble = base
  80.         freather = 0.0
  81.         good = ((math.floor(float(balance)/tens))*tens)
  82.     if ((((float(belance))-(fumble*24))<=0) and (float(balance)>(((math.floor(float(balance)/tens))*tens)+sevens)) and (float(balance)<(((math.floor(float(balance)/tens))*tens)+eights))):
  83.         fumble = base*2
  84.         freather = float(balance)
  85.         good = ((math.floor(float(balance)/tens))*tens)
  86.     time.sleep(0.1)
  87.     number = float(fumble)
  88.     rounded_number = f"{number:.8f}"
  89.     driver.find_element(By.ID, "pct_chance").clear()
  90.     driver.find_element(By.ID, "pct_chance").send_keys("49.5000")
  91.     driver.find_element(By.ID, "pct_bet").clear()
  92.     driver.find_element(By.ID, "pct_bet").send_keys(rounded_number)
  93.     driver.find_element(By.ID, "a_lo").click()
  94.     time.sleep(0.8)
  95.     go()
  96.    
  97. if (1==1):
  98.     go()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement