Advertisement
coinwalk

snowybot python the best python code ever written

Mar 30th, 2024
819
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. try:
  4.     import selenium
  5. except ImportError:
  6.     subprocess.check_call([sys.executable, "-m", "pip", "install", 'selenium'])
  7. finally:
  8.     import selenium
  9. import sys
  10. import json
  11. from selenium import webdriver
  12. from selenium.webdriver.common.by import By
  13. from selenium.webdriver.support.ui import Select
  14. from selenium.common.exceptions import NoSuchElementException
  15. import time, re, math
  16. from selenium.webdriver.firefox.options import Options
  17.  
  18.  
  19. sys.setrecursionlimit(1000000000)
  20. from selenium import webdriver
  21. from selenium.webdriver.common.by import By
  22. from selenium.webdriver.support.ui import Select
  23. from selenium.common.exceptions import NoSuchElementException
  24. import time, re, math
  25. from decimal import Decimal
  26. from selenium.webdriver.firefox.options import Options
  27.  
  28. options = Options()
  29. options.add_argument("--headless")
  30. driver = webdriver.Firefox(options=options)
  31. print("please wait loading page and login")
  32. driver.get("https://just-dice.com")
  33. time.sleep(20)
  34. driver.find_element(By.CSS_SELECTOR, "a.fancybox-item.fancybox-close").click()
  35. time.sleep(5)
  36. driver.find_element(By.LINK_TEXT, "Account").click()
  37. time.sleep(2)
  38. driver.find_element(By.ID, "myuser").clear()
  39. driver.find_element(By.ID, "myuser").send_keys("USERNAME")
  40. time.sleep(0.01)
  41. driver.find_element(By.ID, "mypass").clear()
  42. driver.find_element(By.ID, "mypass").send_keys("PASSWORD")
  43. time.sleep(0.01)
  44. driver.find_element(By.ID, "myok").click()
  45. time.sleep(20)  
  46. print("logged in")
  47. gold = driver.find_element(By.ID, "pct_balance").get_attribute("value")
  48. freather = 0.0 
  49. fumble = (float(gold)/1440000)
  50. fart = 1
  51. base = (float(gold)/1440000)
  52. tens = (base*10)
  53. sevens = (base*6.9)
  54. eights = (base*7.1)
  55. good = ((math.floor(float(gold)/tens))*tens)
  56. print("should see bets")
  57.  
  58. def go():
  59.     global base
  60.     global tens
  61.     global sevens
  62.     global eights
  63.     balance = driver.find_element(By.ID, "pct_balance").get_attribute("value")
  64.     global fumble
  65.     global freather
  66.     global good
  67.     global fart
  68.     global gold
  69.     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))):
  70.         fumble = float(fumble)*2
  71.         freather = float(balance)
  72.     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))):
  73.         fumble = float(fumble)*2
  74.         fart = 0
  75.         freather = float(balance)
  76.     if ((float(balance)>=(float(good)+(tens*fart))) and (float(balance)<(((math.floor(float(balance)/tens))*tens)+sevens))):
  77.         base = (float(balance)/1440000)
  78.         tens = (base*10)
  79.         sevens = (base*6.9)
  80.         eights = (base*7.9)
  81.         fumble = base
  82.         freather = 0.0
  83.         fart = 1
  84.         good = ((math.floor(float(balance)/tens))*tens)
  85.     if (float(balance)>=144000.0):
  86.         sys.exit()
  87.     time.sleep(0.1)
  88.     number = float(fumble)
  89.     rounded_number = f"{number:.8f}"
  90.     driver.find_element(By.ID, "pct_chance").clear()
  91.     driver.find_element(By.ID, "pct_chance").send_keys("49.5000")
  92.     driver.find_element(By.ID, "pct_bet").clear()
  93.     driver.find_element(By.ID, "pct_bet").send_keys(rounded_number)
  94.     driver.find_element(By.ID, "a_lo").click()
  95.     time.sleep(1.2)
  96.     go()
  97.    
  98. if (1==1):
  99.     go()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement