Created
August 26, 2021 09:33
-
-
Save pepper99/85cf4b423649103b60c509ba1b83b62f to your computer and use it in GitHub Desktop.
popcat autoclicker (python selenium)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import time | |
import random | |
from selenium import webdriver | |
from selenium.webdriver.common.keys import Keys | |
from selenium.webdriver.common.by import By | |
from selenium.webdriver.support import expected_conditions as EC | |
from selenium.webdriver.support.ui import WebDriverWait | |
URL = "https://www.popcat.click/" | |
click_amount = 10000000000 | |
driver = webdriver.Chrome('chromedriver.exe') | |
url = driver.command_executor._url | |
session_id = driver.session_id | |
print(url, session_id) | |
driver.maximize_window() | |
driver.get(URL) | |
print("opening..") | |
body = WebDriverWait(driver, 30).until(EC.presence_of_element_located((By.TAG_NAME,'body'))) | |
i = 0 | |
while i < click_amount: | |
body.send_keys(Keys.SPACE) | |
i += 1 | |
time.sleep(random.random() * 0.08 + 0.07) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment