#!/usr/bin/env python3 import requests from time import sleep from os import fork treats=0 for x in range(10): pid = fork() if pid: break while True: rs = requests.session() rp = rs.post('https://recolor.me/login?json', data = {'action':'login', 'account_name':'testingaccount1', 'account_password':'1234'}) if not rp.json()['account_id']: print("wrong login info!") exit(1) rp = rs.get('https://recolor.me/') key_pos = rp.text.find("site.my_key = \'") + len("site.my_key = ") key = rp.text[key_pos:key_pos+32] #time to trick the fuck out of treat rs.post('https://recolor.me/topic/1240271', data={ 'key':key, 'page':'topic', 'action':'reply', 'topic_id':'1240271', 'reply_message':'Trick or Treat' }) #while True: #treats += 1 #print("Trick or treats: {}".format(treats)) #print("Money accumulated: {}".format(treats * 10))