Advertisement
Guest User

Untitled

a guest
Apr 14th, 2017
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.35 KB | None | 0 0
  1. #!usr/bin/env python
  2. # coding: utf-8
  3. from selenium import webdriver
  4. import time, re
  5.  
  6. #INITIALISATION DU NAVIGATEUR (CHROME)
  7. driver = webdriver.Chrome()
  8. driver.get("https://fluxcoder.xyz/sandbox/coin-clicker")
  9. time.sleep(4)
  10. x = 0
  11. t = True
  12.  
  13. #BOUCLE INFINI
  14. while True:
  15. if x <= 500:
  16. #CLIQUER SUR LE BOUTON CLICKER
  17. driver.find_element_by_xpath('//*[@id="mine"]').click()
  18. else :
  19. #AMELIORER SON CLICKER
  20. driver.find_element_by_xpath('//*[@id="upgrade"]').click()
  21. driver.find_element_by_xpath('//*[@id="automine"]').click()
  22. driver.find_element_by_xpath('//*[@id="promine"]').click()
  23. driver.find_element_by_xpath('//*[@id="pmine"]').click()
  24. driver.find_element_by_xpath('//*[@id="jessica"]').click()
  25. driver.find_element_by_xpath('//*[@id="superminer"]').click()
  26. points = re.findall('<span id="coins">(.*?)</span>', str(driver.page_source.encode('utf-8')))
  27. points = str(points).replace("['", "")
  28. points = str(points).replace("']", "")
  29. points = str(points).replace(",", "")
  30. if int(points) >= 2500:
  31. for i in range(1,10):
  32. driver.find_element_by_xpath('//*[@id="upgrade"]').click()
  33. x = 0
  34. if x >= 480 and t == True:
  35. for i in range(1,10):
  36. #CLIQUER POUR AMELIORER LE NOMBRE DE POINTS DU CLICKER AU DEBUT DE LA PARTIE
  37. driver.find_element_by_xpath('//*[@id="upgrade"]').click()
  38. t = False
  39. x = x +1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement