This week I have worked on a search accounts tutorial and it is basically a showcase of python's get_all_accounts function for hive. The code starts off by the user inputting an account and a number of accounts to show. Then the function get_all_accounts is used to make an array of an inputted number of accounts in alphabetical order which is then printed to the terminal.   In this tutorial, there is also search trending tags option where you look up the tabs the same way as the account, but the only tabs that are shown are trending tabs.  As said before, it has been a very interesting look at these functions. This could possibly be used to do things for a specific list of users or specific tags.
author | veryjerry3 |
---|---|
permlink | search-accounts-tutorial |
category | gradnium |
json_metadata | {"app":"peakd/2022.02.6","format":"markdown","tags":["gradnium","vyb","pob","eee-4010","spring2022","python","weekly-activity","hive-devs","tutorial"],"users":[],"image":["https://files.peakd.com/file/peakd-hive/veryjerry3/23tRv7QKmbMbbvXHRqCX9Z6ccGW46PEGRuD4DYGmfWQUbNs3gAuLegsAC59WuXWKbte7H.png","https://files.peakd.com/file/peakd-hive/veryjerry3/Eo44nS21J2EZyWPUYNKQ9UVTjXYNFgsVAeSdsK1m6n3d57ZGBDdrSLhE3utMaoJQMko.png","https://files.peakd.com/file/peakd-hive/veryjerry3/23tRt94s61qpUVDUEjU3XgsxRq8HNNiUPCxkPXCR3izczrgb9GZnZvaGBpSAQchMsWJwS.png"]} |
created | 2022-03-21 04:16:27 |
last_update | 2022-03-21 04:16:27 |
depth | 0 |
children | 0 |
last_payout | 2022-03-28 04:16:27 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 1.982 HBD |
curator_payout_value | 1.980 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 1,124 |
author_reputation | 445,656,786,628 |
root_title | "Search Accounts Tutorial" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 111,541,296 |
net_rshares | 3,181,970,358,050 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
mytechtrail | 0 | 57,557,346,785 | 15% | ||
mariuszkarowski | 0 | 86,580,489 | 10% | ||
trostparadox | 0 | 3,078,150,484,461 | 80% | ||
xyba | 0 | 40,694,476,093 | 80% | ||
davidbright | 0 | 4,875,601,395 | 40% | ||
bitsofwisdom | 0 | 605,868,827 | 40% | ||
bhanutejap | 0 | 0 | 100% |