Skip to content

Instantly share code, notes, and snippets.

@meyer1994
Created February 6, 2018 00:58
Show Gist options
  • Save meyer1994/c743fff150a24fe70025df528de25a6e to your computer and use it in GitHub Desktop.
Save meyer1994/c743fff150a24fe70025df528de25a6e to your computer and use it in GitHub Desktop.
Simple script to cast votes in a poorly created Google Form
import requests
FORM_LINK = 'YOUR FORM LINK'
OPTION = 'OPTION YOU WANT'
FORM_ID = 'YOUR ID (check in headers of form submission)'
data = {
f'entry{FORM_ID}': OPTION,
'fvv': 1,
'pageHistory': 0,
'draftResponse': [],
'pageHistory': 0
}
# LOL
while True:
r = requests.post(f'{FORM_LINK}/formResponse', data=data)
print(r.status_code, r.reason)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment