Prongles Vote Script
#!/usr/bin/env python3
from __future__ import print_function
import requests # install requests via pip/easy_install
class PronglesClicker:
choice_id = 0 # 0 = tacos, 1 = fish, 2 = murica
choice_count = 1
def __init__(self):
self.http = requests.Session()
def main(self):
payload = {}
payload['id'] = self.choice_id,
payload['val'] = self.choice_count
while (True):
result = self.http.post('https://taters.herokuapp.com/vote', data=payload, files={})
if result.status_code == 200:
print(result.text)
if __name__ == '__main__':
PronglesClicker().main()