RE: Part 6: How To Automatically Reply To Mentions Using Steem-Python
Thank you for the contribution. It has been approved.
Btw, I have a couple of ideas about this post:
Node issue
stream = map(Post, blockchain.stream(filter_by=["comment"]))
This shouldn't work since default node defined at steem-python is steemd.steemit.com and it's down for a while. So, if you make it compatible with the jussi or another public node for the potential readers trying out the code, that would be perfect.
Mentions
We can use post.get("json_metadata", {}).get("users")
to get mentions. I am not sure twitter username regex has a full compliance with steemit blockchain's username restrictions. Are there any specific reason to use a regex pattern?
Great job on the series! Looking forward to see more.
You can contact us on Discord.
[utopian-moderator]
Thanks! Regarding the node issue, in part 1 of the series @juliank made sure to mention the default node was deprecated and to set a new one using
steempy set nodes https://rpc.steemviz.com
for example. About the mentions, I never realised that! Funny thing is my mind jumped to regex, because I think I recalled that you used it for the mentions on steem.rocks. Guess I learned something today as well, so thanks for that! 😄Yeah, actually I wasn't aware of that and the regex pattern is still in place at steem.rocks. @favcau warned me lately that info can be obtained at json_metadata. :)
Sorry about the node issue, couldn't have time to read the whole series yet.
Haha, no worries, I had to go to part 1 myself and check if @juliank had actually mentioned it.