Advertisement
coinwalk

jsbot python by snowy

Jan 2nd, 2024
950
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.99 KB | None | 0 0
  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.  
  18. driver = webdriver.Firefox()
  19. driver.get("https://just-dice.com")
  20. time.sleep(20)
  21. driver.find_element(By.CSS_SELECTOR, "a.fancybox-item.fancybox-close").click()
  22. time.sleep(5)
  23. driver.find_element(By.LINK_TEXT, "Account").click()
  24. time.sleep(2)
  25. driver.find_element(By.ID, "myuser").clear()
  26. driver.find_element(By.ID, "myuser").send_keys("USERNAME")
  27. time.sleep(0.01)
  28. driver.find_element(By.ID, "mypass").clear()
  29. driver.find_element(By.ID, "mypass").send_keys("PASSWORD")
  30. time.sleep(0.01)
  31. driver.find_element(By.ID, "myok").click()
  32. time.sleep(20)  
  33. fart = 0.0 
  34. fumble = 0.0001
  35.  
  36. def go():
  37.     base = 0.0001
  38.     tens = (base*10)
  39.     sevens = (base*6.9)
  40.     eights = (base*7.1)
  41.     balance = driver.find_element(By.ID, "pct_balance").get_attribute("value")
  42.     global fumble
  43.     global fart
  44.     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))):
  45.         fumble = float(fumble)*2
  46.         fart = float(balance)
  47.     if ((fumble>=tens) and (float(balance)<(((math.floor(float(balance)/tens))*tens)+sevens))):
  48.         fumble = base
  49.         fart = 0.0
  50.     time.sleep(0.1)
  51.     driver.find_element(By.ID, "pct_chance").clear()
  52.     driver.find_element(By.ID, "pct_chance").send_keys("49.5000")
  53.     driver.find_element(By.ID, "pct_bet").clear()
  54.     driver.find_element(By.ID, "pct_bet").send_keys(float(fumble))
  55.     driver.find_element(By.ID, "a_lo").click()
  56.     time.sleep(0.8)
  57.     go()
  58.    
  59. if (1==1):
  60.     go()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement