Advertisement
coinwalk

python

Apr 24th, 2024
694
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 subprocess
  5. import sys
  6. import json
  7. import time, re, math
  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. from selenium.webdriver.firefox.service import Service
  13. sys.setrecursionlimit(1000000000)
  14. service = Service(executable_path="/snap/bin/geckodriver")
  15. options = webdriver.FirefoxOptions()
  16. options.add_argument("--headless")
  17. driver = webdriver.Firefox(service=service, options=options)
  18. print("please wait loading page and login")
  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("madman")
  27. time.sleep(0.01)
  28. driver.find_element(By.ID, "mypass").clear()
  29. driver.find_element(By.ID, "mypass").send_keys("future2000")
  30. time.sleep(0.01)
  31. driver.find_element(By.ID, "myok").click()
  32. time.sleep(20)
  33. print("logged in")
  34. original = float(driver.find_element(By.ID, "pct_balance").get_attribute("value"))
  35. love = 0.00001
  36. nice = love
  37. tens = (love * 10)
  38. hundreds = (love * 100)
  39. sevens = (love * 6.9)
  40. eights = (love * 7.9)
  41. snowie = 0
  42. funny = False
  43. lamb = 2
  44. silvery = original
  45. awesome = ((math.floor(original / tens)) * tens)
  46. joke = 144000000
  47. goldern = original
  48. print("should see bets")
  49.  
  50. def go():
  51.     global original
  52.     global love
  53.     global nice
  54.     global tens
  55.     global sevens
  56.     global eights
  57.     global snowie
  58.     global funny
  59.     global lamb
  60.     global awesome
  61.     global joke
  62.     global goldern
  63.     global silvery
  64.     global hundreds
  65.     belance = float(driver.find_element(By.ID, "pct_balance").get_attribute("value"))
  66.     coin = belance-original
  67.     snow = round(coin, 8)
  68.     bull = original-belance
  69.     slob = round(bull, 8)
  70.     if (snow>0):
  71.         print("profit")
  72.         print(snow)
  73.     if (snow<=0):
  74.         print("profit")
  75.         print(0)
  76.     if ((belance>(((math.floor(belance/tens))*tens)+sevens)) and (belance<(((math.floor(belance/tens))*tens)+eights)) and (not(belance==snowie))):
  77.         nice = nice*2
  78.         snowie = belance
  79.     if (((belance-(nice*7))<=0) and (belance<=silvery) and (belance<(((math.floor(belance/tens))*tens)+sevens))):
  80.         nice = love
  81.         snowie = 0
  82.         silevery = belance
  83.     if (((belance-(nice*7))<=0) and (belance>=goldern) and (belance<(((math.floor(belance/tens))*tens)+sevens))):
  84.         nice = love
  85.         snowie = 0
  86.         silevery = belance
  87.         goldern = belance
  88.     if (((original-(nice*7))<=0) and (belance<=silvery) and (belance<(((math.floor(belance/tens))*tens)+sevens))):
  89.         nice = love
  90.         snowie = 0
  91.         silevery = belance
  92.     if (((original-(nice*7))<=0) and (belance>=goldern) and (belance<(((math.floor(belance/tens))*tens)+sevens))):
  93.         nice = love
  94.         snowie = 0
  95.         silevery = belance
  96.         goldern = belance
  97.     if (belance<silvery):
  98.         silevery = belance
  99.     if (belance>goldern):
  100.         goldern = belance
  101.     if (belance >= 0.24):
  102.         print("winner winner chicken dinner")
  103.         return
  104.     time.sleep(0.1)
  105.     number = float(nice)
  106.     rounded_number = f"{number:.8f}"
  107.     driver.find_element(By.ID, "pct_chance").clear()
  108.     driver.find_element(By.ID, "pct_chance").send_keys("49.5000")
  109.     driver.find_element(By.ID, "pct_bet").clear()
  110.     driver.find_element(By.ID, "pct_bet").send_keys(rounded_number)
  111.     driver.find_element(By.ID, "a_lo").click()
  112.     time.sleep(0.8)
  113.     go()
  114.    
  115. if (1==1):
  116.     go()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement