You are viewing a single comment's thread from:
RE: Exploring new Hivemind Community APIs
Realistically, right now, all I'm trying to do is just get a list of replies to a post. I've build my project, more or less, utilizing beempy
. Comments broke a while back, and I haven't really had time to sink my teeth back into it:
from beem.comment import Comment
comment = Comment(@emrebeyler/exploring-new-hivemind-community-apis)
comment.get_replies()
Which then ends up throwing the error below:
Traceback (most recent call last):
File "<console>", line 1, in <module>
File "/home/betasites/venv/lib/python3.6/site-packages/beem/comment.py", line 591, in get_replies
content_replies = self.steem.rpc.get_content_replies({'author': post_author, 'permlink': post_permlink}, api="tags")['discussions']
TypeError: list indices must be integers or slices, not str
Again, I'm not super well versed in the changes that happened to the APIs during the latest HF's. Maybe I'm just completely in the wrong spot trying to find these replies...?
If there's another python library available that would make my life easier -- I'm definitely open to checking it out. I haven't looked into the functionality of lightsteem
-- would that one be useful here?
Check out lightsteem, I use it on my scripts/apps all the time. However, it's not advanced as Beem.
That exception you mention needs some debugging. Did you try asking to Beem discord?
Been a while since I've popped in there to touch base with Holger. Maybe worth a visit again.
Still feeling pretty compelled / interested in spinning up a Hivemind node -- so I might start there.
Lightsteem example
yeah I figured it should be that easy. It used to be, w/
beem
.I'll dig into things and see what's going on.
Cheers!