Skip to content

Instantly share code, notes, and snippets.

@smukkejohan
Created April 4, 2016 12:49
Show Gist options
  • Select an option

  • Save smukkejohan/3085f9a41c6fc64ee7d31e5f84ddd009 to your computer and use it in GitHub Desktop.

Select an option

Save smukkejohan/3085f9a41c6fc64ee7d31e5f84ddd009 to your computer and use it in GitHub Desktop.
import requests
def voteForAllLogos():
rawPayload = "entry.1081103513=Logo+1&entry.1081103513=Logo+2&entry.1081103513=Logo+3&entry.1081103513=Logo+4&entry.1081103513=Logo+5&entry.1081103513=Logo+6&entry.1081103513=Logo+7&entry.1081103513=Logo+8&fvv=1"
r = requests.post("https://docs.google.com/forms/d/1O9btxd7Lx75hGYJqo-EcoGPoudRGt-g3jpm_FM5SBJg/formResponse", data=rawPayload)
print r.status_code
return r.status_code
votes = 0
voteSucces = True
while(voteSucces):
if voteForAllLogos() == 200:
votes += 1
print votes
voteSucces = True
else:
voteSucces = False
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment