Advertisement
coinwalk

snowybot python

Jan 2nd, 2024
880
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 os, sys
  5. import select
  6. import logging
  7. from logging.handlers import TimedRotatingFileHandler
  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 datetime import datetime, timedelta
  15. import traceback
  16. import signal
  17. from selenium.webdriver.firefox.options import Options
  18.  
  19. options = Options()
  20. options.add_argument("--headless")
  21. driver = webdriver.Firefox(options=options)
  22. print("please wait loading page and login")
  23. driver.get("https://just-dice.com")
  24. time.sleep(20)
  25. driver.find_element(By.CSS_SELECTOR, "a.fancybox-item.fancybox-close").click()
  26. time.sleep(5)
  27. driver.find_element(By.LINK_TEXT, "Account").click()
  28. time.sleep(2)
  29. driver.find_element(By.ID, "myuser").clear()
  30. driver.find_element(By.ID, "myuser").send_keys("USERNAME")
  31. time.sleep(0.01)
  32. driver.find_element(By.ID, "mypass").clear()
  33. driver.find_element(By.ID, "mypass").send_keys("PASSWORD")
  34. time.sleep(0.01)
  35. driver.find_element(By.ID, "myok").click()
  36. time.sleep(20)  
  37. print("logged in")
  38. fart = 0.0 
  39. fumble = 0.0001
  40. print("should see bets")
  41.  
  42. def go():
  43.     base = 0.0001
  44.     tens = (base*10)
  45.     sevens = (base*6.9)
  46.     eights = (base*7.1)
  47.     balance = driver.find_element(By.ID, "pct_balance").get_attribute("value")
  48.     global fumble
  49.     global fart
  50.     if ((float(balance)>(((math.floor(float(balance)/tens))*tens)+sevens)) and (float(balance)<(((math.floor(float(balance)/tens))*tens)+eights)) and (not (float(balance)==fart))):
  51.         fumble = float(fumble)*2
  52.         fart = float(balance)
  53.     if ((fumble>=tens) and (float(balance)<(((math.floor(float(balance)/tens))*tens)+sevens))):
  54.         fumble = base
  55.         fart = 0.0
  56.     time.sleep(0.1)
  57.     driver.find_element(By.ID, "pct_chance").clear()
  58.     driver.find_element(By.ID, "pct_chance").send_keys("49.5000")
  59.     driver.find_element(By.ID, "pct_bet").clear()
  60.     driver.find_element(By.ID, "pct_bet").send_keys(float(fumble))
  61.     driver.find_element(By.ID, "a_lo").click()
  62.     time.sleep(0.8)
  63.     go()
  64.    
  65. if (1==1):
  66.     go()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement