Skip to content

Instantly share code, notes, and snippets.

@stobias123
Last active December 14, 2021 20:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stobias123/5e3fd1fede1e1aad9177d4ef94ec9efc to your computer and use it in GitHub Desktop.
Save stobias123/5e3fd1fede1e1aad9177d4ef94ec9efc to your computer and use it in GitHub Desktop.
vote on house.
## RUN THIS FIRST IN YOUR TERMINAL
## pip install selenium
import time
from selenium import webdriver
ntimes = YOUR_NUMBER_OF_VOTES
for x in range(ntimes):
spamsite='https://form.jotform.com/213464781110146'
driver = webdriver.Chrome()
driver.get(spamsite)
time.sleep(1) # Let the user actually see something!
house31 = driver.find_element_by_id('label_input_11_13')
house31.click()
button = driver.find_element_by_id('input_2')
button.click()
time.sleep(5) # Let the user actually see something!
driver.quit()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment