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. 
author | veryjerry3 |
---|---|
permlink | a-new-direction-for-my-python-blockhain-coding |
category | gradnium |
json_metadata | {"app":"peakd/2022.02.6","format":"markdown","tags":["gradnium","vyb","pob","eee-4010","spring2022","python","weekly-activity"],"users":[],"image":["https://files.peakd.com/file/peakd-hive/veryjerry3/23tGVqVk4o6hd3PR7khFXRktFwVgEaChgGozRntzdUhAPdKyQNPQzxhnDW8EYN3uooe3i.png","https://files.peakd.com/file/peakd-hive/veryjerry3/23t7FH7y5VvqjEALWZKHwDpaysBcRCQ9SUny9wEqXHJm2Xo4HWknM5YPnrpnxoMoPzRHm.png"]} |
created | 2022-03-07 04:22:06 |
last_update | 2022-03-07 04:22:06 |
depth | 0 |
children | 1 |
last_payout | 2022-03-14 04:22:06 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 1.019 HBD |
curator_payout_value | 1.019 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 1,610 |
author_reputation | 445,656,786,628 |
root_title | "A new direction for my python blockhain coding" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 111,089,503 |
net_rshares | 1,871,282,785,137 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
mytechtrail | 0 | 57,727,048,435 | 15% | ||
trostparadox | 0 | 1,789,729,709,318 | 50% | ||
xyba | 0 | 23,826,027,384 | 50% | ||
bhanutejap | 0 | 0 | 100% |
Congratulations @veryjerry3! You have completed the following achievement on the Hive blockchain and have been rewarded with new badge(s): <table><tr><td><img src="https://images.hive.blog/60x70/http://hivebuzz.me/@veryjerry3/payout.png?202203140932"></td><td>You received more than 10 HP as payout for your posts, comments and curation.<br>Your next payout target is 50 HP.<br><sub>The unit is Hive Power equivalent because post and comment rewards can be split into HP and HBD</sub></td></tr> </table> <sub>_You can view your badges on [your board](https://hivebuzz.me/@veryjerry3) and compare yourself to others in the [Ranking](https://hivebuzz.me/ranking)_</sub> <sub>_If you no longer want to receive notifications, reply to this comment with the word_ `STOP`</sub> ###### Support the HiveBuzz project. [Vote](https://hivesigner.com/sign/update_proposal_votes?proposal_ids=%5B%22199%22%5D&approve=true) for [our proposal](https://peakd.com/me/proposals/199)!
author | hivebuzz |
---|---|
permlink | notify-veryjerry3-20220314t094550 |
category | gradnium |
json_metadata | {"image":["http://hivebuzz.me/notify.t6.png"]} |
created | 2022-03-14 09:45:51 |
last_update | 2022-03-14 09:45:51 |
depth | 1 |
children | 0 |
last_payout | 2022-03-21 09:45:51 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 969 |
author_reputation | 370,316,576,492,912 |
root_title | "A new direction for my python blockhain coding" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 111,317,843 |
net_rshares | 233,338,798 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
gangstalking | 0 | 233,338,798 | 0.15% |