From 680da9662e0f0185aad05293739122c23d6c9bca Mon Sep 17 00:00:00 2001 From: Brett Weiland Date: Sun, 1 Nov 2020 15:55:06 -0600 Subject: new file: post_bot.py --- post_bot.py | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100755 post_bot.py diff --git a/post_bot.py b/post_bot.py new file mode 100755 index 0000000..aa9a49d --- /dev/null +++ b/post_bot.py @@ -0,0 +1,52 @@ +#!/usr/bin/env python3 +import requests +from time import sleep +from os import fork + +post_cooloff = 7 + +rs = requests.session() +rp = rs.post('https://recolor.me/login?json', data = { + 'action':'login', + 'account_name':'testingaccount1', + 'account_password':'1234', + 'account_cookie':'1'}) + +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] + + +rs.post('https://recolor.me/topic/1557621', data={ + 'key':key, + 'page':'topic', + 'action':'reply', + 'topic_id':'1557621', + 'reply_message':'posts with 7 second delay (pair 2)', + 'box_color':'#ff0000', + 'post_color':'#0', + 'post_style':'0' + }) +rs.post('https://recolor.me/topic/1557621', data={ + 'key':key, + 'page':'topic', + 'action':'reply', + 'topic_id':'1557621', + 'reply_message':'posts with 7 second delay (pair 2)', + 'box_color':'#0000ff', + 'post_color':'#0', + 'post_style':'0' + }) + + + + #while True: + #treats += 1 + #print("Trick or treats: {}".format(treats)) + #print("Money accumulated: {}".format(treats * 10)) +#cfc4cfa627a259e8d810849680c0460aeb369b93f3d40bd17ab7401031419b43ffebf8e79cb655a3eaeff675427ad6832b2d0eb8813d0844ddef7f9166d0470d + -- cgit v1.2.3