You are viewing a single comment's thread from:

RE: 2017 Updated Guide on How to Make Your Own Steem Upvoting Bot

in #steem8 years ago

Unless I am mistaken, stream_comments() returns instances of class Post which has the author as a field you can access using post["author"]. That would allow you to remove the additional get_post(). Give it a try.

Sort:  

hi, i tried using post["author"], but I get an error. I find it strange because in previous guides they use the post["author"]. That is why I use the workaround of get_post.

I tried again and it worked! Thanks.

Hmm .. here it says that stream_comments returns instances of Post() and here it refreshs the post and stores the content of the post as "dictionary" in the Post() class.

What's the error message?

I tried again and it worked. Thanks.

Would you know which node I can set to for the piston library. I tried several nodes and seemingly I can't do a create_account command. I can only do it in piston.rocks node but it seems the node charges more than the 0.3 steem that other node charge.

Coin Marketplace

STEEM 0.09
TRX 0.32
JST 0.032
BTC 107621.13
ETH 3924.14
USDT 1.00
SBD 0.59