summaryrefslogtreecommitdiff
path: root/post_bot.py
diff options
context:
space:
mode:
authorBrett Weiland <brett_weiland@bpcspace.com>2020-11-01 15:55:06 -0600
committerBrett Weiland <brett_weiland@bpcspace.com>2020-11-01 15:55:06 -0600
commit680da9662e0f0185aad05293739122c23d6c9bca (patch)
treeb6f674b8b7a5becf4dba594796676297118f7aee /post_bot.py
parent57bee8b0adede77d8e20abb01b2d062ea5d74352 (diff)
new file: post_bot.py
Diffstat (limited to 'post_bot.py')
-rwxr-xr-xpost_bot.py52
1 files changed, 52 insertions, 0 deletions
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
+