Advertisement
coinwalk

snowybot trial python

May 13th, 2024
684
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 4.12 KB | None | 0 0
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3.  
  4. import subprocess
  5. import sys
  6. try:
  7.     import selenium
  8. except ImportError:
  9.     subprocess.check_call([sys.executable, "-m", "pip", "install", 'selenium'])
  10. finally:
  11.     import selenium
  12.  
  13. from selenium import webdriver
  14. from selenium.webdriver.common.by import By
  15. from selenium.webdriver.support.ui import Select
  16. from selenium.common.exceptions import NoSuchElementException
  17. import time, re, math
  18. from decimal import Decimal
  19. from selenium.webdriver.firefox.options import Options
  20.  
  21.  
  22. sys.setrecursionlimit(1000000000)
  23. options = Options()
  24. options.add_argument("--headless")
  25. driver = webdriver.Firefox(options=options)
  26. driver = webdriver.Firefox(service=service, 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 = (belance/240)
  46. fart = 1
  47. base = (belance/240)
  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.     global base
  57.     global tens
  58.     global sevens
  59.     global eights
  60.     balance = driver.find_element(By.ID, "pct_balance").get_attribute("value")
  61.     global fumble
  62.     global freather
  63.     global good
  64.     global fart
  65.     global gold
  66.     global belance
  67.     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))):
  68.         fumble = float(fumble)*2
  69.         freather = float(balance)
  70.     if ((((float(balance)/12)-fumble)<=0) and (float(balance)<(((math.floor(float(balance)/tens))*tens)+sevens))):
  71.         fumble = base
  72.         freather = 0.0
  73.         good = ((math.floor(float(balance)/tens))*tens)
  74.     if ((((float(balance)/12)-fumble)<=0) and (float(balance)>(((math.floor(float(balance)/tens))*tens)+eights))):
  75.         fumble = base
  76.         freather = 0.0
  77.         good = ((math.floor(float(balance)/tens))*tens)
  78.     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))):
  79.         fumble = base*2
  80.         freather = float(balance)
  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))):
  83.         fumble = base
  84.         freather = 0.0
  85.         good = ((math.floor(float(balance)/tens))*tens)
  86.     if ((((float(belance))-(fumble*24))<=0) and (float(balance)>(((math.floor(float(balance)/tens))*tens)+eights))):
  87.         fumble = base
  88.         freather = 0.0
  89.         good = ((math.floor(float(balance)/tens))*tens)
  90.     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))):
  91.         fumble = base*2
  92.         freather = float(balance)
  93.         good = ((math.floor(float(balance)/tens))*tens)
  94.     if ((float(balance))>=(belance*4)):
  95.         exit()
  96.     time.sleep(0.1)
  97.     number = float(fumble)
  98.     rounded_number = f"{number:.8f}"
  99.     driver.find_element(By.ID, "pct_chance").clear()
  100.     driver.find_element(By.ID, "pct_chance").send_keys("49.5000")
  101.     driver.find_element(By.ID, "pct_bet").clear()
  102.     driver.find_element(By.ID, "pct_bet").send_keys(rounded_number)
  103.     driver.find_element(By.ID, "a_lo").click()
  104.     time.sleep(0.8)
  105.     go()
  106.    
  107. if (1==1):
  108.     go()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement