Barry McCockinner Posted Tuesday at 08:42 PM Author Share Posted Tuesday at 08:42 PM 33 minutes ago, Jet_Engine1 said: import time import random from selenium import webdriver from selenium.webdriver.common.by import By from threading import Thread def automate_clicks(): # Initialize the WebDriver (modify as needed for your browser) driver = webdriver.Chrome() # Replace with the path to your chromedriver if necessary try: while True: # Navigate to your website driver.get('https://www.nfl.com/voting/rookies/') # Random delay between 10 seconds and 2 minutes delay = random.uniform(10, 120) time.sleep(delay) # Click on the first element using data attribute element1 = driver.find_element(By.CSS_SELECTOR, '[data-choice-id="5"]') element1.click() # Another random delay delay = random.uniform(10, 120) time.sleep(delay) # Click on the "Vote Now" button using its data-test attribute vote_button = driver.find_element(By.CSS_SELECTOR, 'button[data-test="choose-btn"]') vote_button.click() except Exception as e: print(f"An error occurred: {e}") finally: driver.quit() # Run the automation in a separate thread to keep it running in the background thread = Thread(target=automate_clicks) thread.start() 1 Quote Link to comment Share on other sites More sharing options...
Sperm Edwards Posted Tuesday at 08:44 PM Share Posted Tuesday at 08:44 PM I voted for Olu Fashanu. He gave up 0 sacks, 0 QB hits, and 0 pressures yet again this week. Go Jets! 2 2 Quote Link to comment Share on other sites More sharing options...
bicketybam Posted Tuesday at 08:46 PM Share Posted Tuesday at 08:46 PM 1 hour ago, Jetsfan80 said: Every time a Jet has ever been on the Pepsi Zero Sugar Rookie of the Week ballot in the history of the award he has ended up winning the award because of Jets Twitter. Every. Time. Without fail. Quote Link to comment Share on other sites More sharing options...
Sperm Edwards Posted Tuesday at 08:49 PM Share Posted Tuesday at 08:49 PM 1 minute ago, bicketybam said: 👆 waxes his legs 1 Quote Link to comment Share on other sites More sharing options...
The Crusher Posted Tuesday at 08:50 PM Share Posted Tuesday at 08:50 PM 32 minutes ago, sciond said: Is Bunny a nickname for hands? @Jetsfan80 little help? 1 Quote Link to comment Share on other sites More sharing options...
Jetsfan80 Posted Tuesday at 09:36 PM Share Posted Tuesday at 09:36 PM 52 minutes ago, Sperm Edwards said: I voted for Olu Fashanu. He gave up 0 sacks, 0 QB hits, and 0 pressures yet again this week. Go Jets! Stone. Wall. Quote Link to comment Share on other sites More sharing options...
Jetsfan80 Posted Tuesday at 09:37 PM Share Posted Tuesday at 09:37 PM 46 minutes ago, The Crusher said: @Jetsfan80 little help? If you squint real hard I suppose it works as a nickname? Not in my current vernacular but willing to make the addition. 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.