Created
September 9, 2017 21:02
-
-
Save gcampfield/0c1984aac6df9244246c8d9770103dc0 to your computer and use it in GitHub Desktop.
Python script to spam the Carnival 2018 suggestions 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 | |
import random | |
title = "SHREK" | |
descriptions = [ | |
"Somebody once told me the world is macaroni", | |
"I ain't the sharpest tool in the shed", | |
"She was looking kind of dumb with her finger and her thumb", | |
"In the shape of an L on her forehead" | |
] | |
def submit(): | |
payload = { | |
"entry.1221563127": title, | |
"entry.1630312484": random.choice(descriptions), | |
"fbzx": -4259679731041621139 | |
} | |
url = "https://docs.google.com/forms/d/e/1FAIpQLSeBHW7jyr3rKMYgxvniuLWcq2Cgfx-XKI0hDPJDbwVOE_7npA/formResponse" | |
headers = requests.utils.default_headers() | |
headers.update({ | |
"User-Agent": "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.85 Safari/537.36" | |
}) | |
return requests.post(url, data=payload) | |
while True: | |
print submit() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment