Created
February 6, 2018 00:58
-
-
Save meyer1994/c743fff150a24fe70025df528de25a6e to your computer and use it in GitHub Desktop.
Simple script to cast votes in a poorly created Google Form
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 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