Created
April 4, 2016 12:49
-
-
Save smukkejohan/3085f9a41c6fc64ee7d31e5f84ddd009 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
| 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