Advertisement
coinwalk

snowybot python

Aug 2nd, 2024
287
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # @title Default title text
  2. #!/usr/bin/env python
  3. # -*- coding: utf-8 -*-
  4.  
  5. import subprocess
  6. import sys
  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.  
  23. sys.setrecursionlimit(1000000000)
  24. options = Options()
  25. options.add_argument("--headless")
  26. driver = webdriver.Firefox(options=options)
  27. print("please wait loading page and login")
  28. driver.get("https://just-dice.com")
  29. time.sleep(20)
  30. driver.find_element(By.CSS_SELECTOR, "a.fancybox-item.fancybox-close").click()
  31. time.sleep(5)
  32. driver.find_element(By.LINK_TEXT, "Account").click()
  33. time.sleep(2)
  34. driver.find_element(By.ID, "myuser").clear()
  35. driver.find_element(By.ID, "myuser").send_keys("USERNAME")
  36. time.sleep(0.01)
  37. driver.find_element(By.ID, "mypass").clear()
  38. driver.find_element(By.ID, "mypass").send_keys("PASSWORD")
  39. time.sleep(0.01)
  40. driver.find_element(By.ID, "myok").click()
  41. time.sleep(20)
  42. print("logged in")
  43. belance = driver.find_element(By.ID, "pct_balance").get_attribute("value")
  44. freather = 0.0
  45. fumble = 0.00000001
  46. fart = 1
  47. base = 0.00000001
  48. tens = (base*10)
  49. sevens = (base*6.9)
  50. eights = (base*7.9)
  51. gold = driver.find_element(By.ID, "pct_balance").get_attribute("value")
  52. good = ((math.floor(float(gold)/tens))*tens)
  53. print("should see bets")
  54.  
  55. def go():
  56.     return False
  57.     global base
  58.     global tens
  59.     global sevens
  60.     global eights
  61.     balance = driver.find_element(By.ID, "pct_balance").get_attribute("value")
  62.     global fumble
  63.     global freather
  64.     global good
  65.     global fart
  66.     global gold
  67.     global belance
  68.     if ((float(balance)>(((math.floor(float(balance)/tens))*tens)+sevens)) and (float(balance)<(((math.floor(float(balance)/tens))*tens)+eights)) and ((float(balance))<freather)):
  69.         fumble = float(fumble)*2
  70.         freather = float(balance)
  71.     if ((float(balance)>(((math.floor(float(balance)/tens))*tens)+sevens)) and (float(balance)<(((math.floor(float(balance)/tens))*tens)+eights)) and ((float(balance))>freather)):
  72.         fumble = float(fumble)*2
  73.         freather = float(balance)
  74.     if (((float(balance)>=((float(good))+tens))) 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(balance))>=144000.0):
  79.         exit()
  80.     time.sleep(0.1)
  81.     number = float(fumble)
  82.     rounded_number = f"{number:.8f}"
  83.     driver.find_element(By.ID, "pct_chance").clear()
  84.     driver.find_element(By.ID, "pct_chance").send_keys("49.5000")
  85.     driver.find_element(By.ID, "pct_bet").clear()
  86.     driver.find_element(By.ID, "pct_bet").send_keys(rounded_number)
  87.     driver.find_element(By.ID, "a_lo").click()
  88.     time.sleep(0.8)
  89.     return True
  90.  
  91. if (1==1):
  92.     go()  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement