Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!usr/bin/env python
- # coding: utf-8
- from selenium import webdriver
- import time, re
- #INITIALISATION DU NAVIGATEUR (CHROME)
- driver = webdriver.Chrome()
- driver.get("https://fluxcoder.xyz/sandbox/coin-clicker")
- time.sleep(4)
- x = 0
- t = True
- #BOUCLE INFINI
- while True:
- if x <= 500:
- #CLIQUER SUR LE BOUTON CLICKER
- driver.find_element_by_xpath('//*[@id="mine"]').click()
- else :
- #AMELIORER SON CLICKER
- driver.find_element_by_xpath('//*[@id="upgrade"]').click()
- driver.find_element_by_xpath('//*[@id="automine"]').click()
- driver.find_element_by_xpath('//*[@id="promine"]').click()
- driver.find_element_by_xpath('//*[@id="pmine"]').click()
- driver.find_element_by_xpath('//*[@id="jessica"]').click()
- driver.find_element_by_xpath('//*[@id="superminer"]').click()
- points = re.findall('<span id="coins">(.*?)</span>', str(driver.page_source.encode('utf-8')))
- points = str(points).replace("['", "")
- points = str(points).replace("']", "")
- points = str(points).replace(",", "")
- if int(points) >= 2500:
- for i in range(1,10):
- driver.find_element_by_xpath('//*[@id="upgrade"]').click()
- x = 0
- if x >= 480 and t == True:
- for i in range(1,10):
- #CLIQUER POUR AMELIORER LE NOMBRE DE POINTS DU CLICKER AU DEBUT DE LA PARTIE
- driver.find_element_by_xpath('//*[@id="upgrade"]').click()
- t = False
- x = x +1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement