-
Notifications
You must be signed in to change notification settings - Fork 0
/
hbd_funder_post.py
34 lines (24 loc) · 1003 Bytes
/
hbd_funder_post.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import os
import time
from beem import Hive
from beem.utils import construct_authorperm
hive_key="TODO"
parent_author = "hbd.funder"
parent_permlink = "upvote-this-post-to-fund-hbdstabilizer"
reply_identifier = construct_authorperm(parent_author, parent_permlink)
print("reply_identifier: " + str(reply_identifier))
title="RE: Upvote this post to fund @hbdstabilizer"
author="hbd.funder"
tags=["hbd"]
beneficiaries=[{'account': "hbdstabilizer", 'weight': 10000}]
body="The rewards for this comment are set to 100% beneficiary going to the @hbdstabilizer account."
h = Hive(keys=[hive_key], node=["https://anyx.io", "https://api.deathwing.me"])
for x in range(0, 11):
print("posting (" + str(x)+ ")")
tx = h.post(title=title, body=body, author=author,
reply_identifier=reply_identifier,
tags=tags,beneficiaries=beneficiaries)
print("post complete")
print(tx)
time.sleep(60) # can only post once per block. give extra time in case of error.
print("done")