So my last few update posts have been about a specific python hive tutorial called submit posts, which has caused me so many troubles. I have dealt with not knowing how to input a password, and then getting an error that I don't know how to fix. Even with outside help, I still do not fully know how to add my account to the python code or my computer to be able to submit a post, even though I have done it another way.
I have decided to abandon this course of work and I started looking at tutorials that could help me automate something that I plan to do later. This week I have worked on code that streams blockchain transactions live through the python terminal.
As shown above, the code looks at the current block and sees the type of transaction. Currently, the transaction is printed only if the type of transaction is a comment. The next if statement finds the distance between the parent author. If the length is 0, it means the comment is the parent author, which only happens when the author has created a post, so it uses the format seen above. For any other length, the author is a reply to the parent author so the format seen in the else statement should make sense. The end result of the code is seen below. Just to keep in mind, the code keeps running until the program is manually stopped.