create account


advanced mode

Steem-python question by frdem3dot0

View this thread on steemit.com
View on official site
· @frdem3dot0 · (edited)
$2.88
Steem-python question
I am currently playing around with programming some steem-bots using steem-python and have a problem for that I build a rather complicated solution, while there is probably a better way to do it. 

![Gygv9V.jpeg](https://cdn.steemitimages.com/DQmVJdssgyJs3fAz3UuCHJcq1FQmzjceXb5WWVvFrP1EoDo/Gygv9V.jpeg)

I want to find out who delegates __to__ a given Account (and how much) and who __follows__ that Account.

Also I have just started with steem-pyhton and not given much consideration to the existing alternatives. What are the advantages of libraries such as BEEM compared to steem-python?

I will put 2.5 SBD as a steem-bounty for the best answers.
👍  , , , , , , , , , , , , , , ,
json_metadata{"tags":["steem","python","bots","steem-bounty","nobidbot"],"image":["https://cdn.steemitimages.com/DQmVJdssgyJs3fAz3UuCHJcq1FQmzjceXb5WWVvFrP1EoDo/Gygv9V.jpeg"],"app":"steemit/0.1","format":"markdown"}
last_update2018-09-11 08:56:30
created2018-09-11 08:18:45
active2018-09-18 08:19:09
last_payout2018-09-18 08:18:45
depth0
children19
net_rshares0
vote_rshares0
children_abs_rshares0
cashout_time1969-12-31 23:59:59
max_cashout_time1969-12-31 23:59:59
total_vote_weight0
reward_weight10,000
total_payout_value2.175 SBD
curator_payout_value0.704 SBD
author_rewards2,996
net_votes16
root_authorfrdem3dot0
root_permlinksteem-python-question
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
allow_repliestrue
allow_votestrue
allow_curation_rewardstrue
beneficiaries[]
root_title"Steem-python question"
pending_payout_value0.000 SBD
total_pending_payout_value0.000 STEEM
author_reputation1,175,646,673,857
promoted0.000 SBD
body_length0
reblogged_by[]
author_curate_reward""
vote details (16)

vote your-acct "frdem3dot0" "steem-python-question" 100 true
post_comment your-acct "re-frdem3dot0-steem-python-question-20180919t224339950z" "frdem3dot0" "steem-python-question" "" "your reply.." "{}" true

View on official site
@steem-bounty ·
Buonty added
@frdem3dot0 has set 2.500 SBD bounty on this post!
 ![logo_for-light-bg_1000.png](https://steemitimages.com/DQmdYbGNQCwrAsveg9Yv5YeRqCCzjCYhoavinDwYLqPN9mu/logo_for-light-bg_1000.png)   <br>


Bounties are  a new way you can earn rewards irrespective of you Steem Power.  Go [here](https://steemit.com/steem-bounty/@rjoshicool/how-to-use-steem-bounty-one-of-the-most-popular-dapp-on-steem-blockchain) to learn how bounties work.

Earn the bounty by commenting what you think the bounty creator wants to know from you.

[Find more bounties here](https://steem-bounty.com/) and become a bounty hunter.

Happy Rewards Hunting!
json_metadata"{"max_accepted_payout": "0.000 SBD", "author": "frdem3dot0", "allow_curation_rewards": false, "allow_votes": false, "permlink": "steem-python-question", "percent_steem_dollars": 0}"
created2018-09-11 08:37:48
active2018-09-18 08:19:09
last_payout2018-09-18 08:37:48
depth1
children1
net_rshares0
vote_rshares0
children_abs_rshares0
cashout_time1969-12-31 23:59:59
max_cashout_time1969-12-31 23:59:59
total_vote_weight0
reward_weight10,000
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
author_rewards0
net_votes0
root_authorfrdem3dot0
root_permlinksteem-python-question
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
allow_repliestrue
allow_votestrue
allow_curation_rewardstrue
beneficiaries[]
root_title"Steem-python question"
pending_payout_value0.000 SBD
total_pending_payout_value0.000 STEEM
author_reputation28,162,236,172,964
promoted0.000 SBD
body_length0
reblogged_by[]

vote your-acct "steem-bounty" "re-steem-python-question-20180911t083746" 100 true
post_comment your-acct "re-steem-bounty-re-steem-python-question-20180911t083746-20180919t224339952z" "steem-bounty" "re-steem-python-question-20180911t083746" "" "your reply.." "{}" true

View on official site
@steem-bounty ·
Bounty Payout
Congratulations to the following winner(s) of the bounty!
- @holger80 has earned 1.096 SBD. 1.069 SBD from the creator of the bounty and 0.027 SBD from the community! 
[Find more bounties here](https://steem-bounty.com/) and become a bounty hunter.
- @culgin has earned 0.299 SBD. 0.214 SBD from the creator of the bounty and 0.086 SBD from the community! 
[Find more bounties here](https://steem-bounty.com/) and become a bounty hunter.
- @pibara has earned 0.855 SBD. 0.855 SBD from the creator of the bounty and 0.000 SBD from the community! 
[Find more bounties here](https://steem-bounty.com/) and become a bounty hunter.
json_metadata"{"author": "steem-bounty", "allow_curation_rewards": false, "allow_votes": false, "max_accepted_payout": "0.000 SBD", "permlink": "re-steem-python-question-20180911t083746", "percent_steem_dollars": 0}"
created2018-09-18 08:19:09
active2018-09-18 08:19:09
last_payout1970-01-01 00:00:00
depth2
children0
net_rshares0
vote_rshares0
children_abs_rshares0
cashout_time2018-09-25 08:19:09
max_cashout_time1969-12-31 23:59:59
total_vote_weight0
reward_weight10,000
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
author_rewards0
net_votes0
root_authorfrdem3dot0
root_permlinksteem-python-question
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
allow_repliestrue
allow_votestrue
allow_curation_rewardstrue
beneficiaries[]
root_title"Steem-python question"
pending_payout_value0.000 SBD
total_pending_payout_value0.000 STEEM
author_reputation28,162,236,172,964
promoted0.000 SBD
body_length0
reblogged_by[]

vote your-acct "steem-bounty" "re-re-steem-python-question-20180911t083746-20180918t081912" 100 true
post_comment your-acct "re-steem-bounty-re-re-steem-python-question-20180911t083746-20180918t081912-20180919t224339954z" "steem-bounty" "re-re-steem-python-question-20180911t083746-20180918t081912" "" "your reply.." "{}" true

View on official site
@chekohler ·
I think@brendanvanbreda may be able to help you with this one. Check it out man!
json_metadata{"community":"busy","app":"busy/2.5.6","format":"markdown","tags":["steem"],"users":["brendanvanbreda"],"links":[],"image":[]}
created2018-09-11 08:40:33
active2018-09-11 08:40:33
last_payout2018-09-18 08:40:33
depth1
children0
net_rshares0
vote_rshares0
children_abs_rshares0
cashout_time1969-12-31 23:59:59
max_cashout_time1969-12-31 23:59:59
total_vote_weight0
reward_weight10,000
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
author_rewards0
net_votes0
root_authorfrdem3dot0
root_permlinksteem-python-question
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
allow_repliestrue
allow_votestrue
allow_curation_rewardstrue
beneficiaries[]
root_title"Steem-python question"
pending_payout_value0.000 SBD
total_pending_payout_value0.000 STEEM
author_reputation6,028,949,318,807
promoted0.000 SBD
body_length0
reblogged_by[]

vote your-acct "chekohler" "re-frdem3dot0-steem-python-question-20180911t084031788z" 100 true
post_comment your-acct "re-chekohler-re-frdem3dot0-steem-python-question-20180919t224339956z" "chekohler" "re-frdem3dot0-steem-python-question-20180911t084031788z" "" "your reply.." "{}" true

View on official site
@tobixen ·
There is also the lightsteem python client, but I've heard rumors that it's a clone/rip-off of beem?

I haven't done much programming against steem, though I do have some ideas I've been considering to implement.
json_metadata{"tags":["steem"],"app":"steemit/0.1"}
created2018-09-11 08:57:24
active2018-09-12 07:05:33
last_payout2018-09-18 08:57:24
depth1
children3
net_rshares0
vote_rshares0
children_abs_rshares0
cashout_time1969-12-31 23:59:59
max_cashout_time1969-12-31 23:59:59
total_vote_weight0
reward_weight10,000
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
author_rewards0
net_votes0
root_authorfrdem3dot0
root_permlinksteem-python-question
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
allow_repliestrue
allow_votestrue
allow_curation_rewardstrue
beneficiaries[]
root_title"Steem-python question"
pending_payout_value0.000 SBD
total_pending_payout_value0.000 STEEM
author_reputation11,191,239,331,989
promoted0.000 SBD
body_length0
reblogged_by[]

vote your-acct "tobixen" "re-frdem3dot0-steem-python-question-20180911t085725496z" 100 true
post_comment your-acct "re-tobixen-re-frdem3dot0-steem-python-question-20180919t224339958z" "tobixen" "re-frdem3dot0-steem-python-question-20180911t085725496z" "" "your reply.." "{}" true

View on official site
@frdem3dot0 ·
what kind of ideas do you have? I am mostly interested in advertisement. The current bidbots are not delivering for people that want to advertise and they are also not delivering for the community. In the end they only work because of steem-inflation and are not real advertisement products with a logical revenue stream. 

Instead I am interested in trying other solutions to advertisement.
👍  
json_metadata{"tags":["steem"],"app":"steemit/0.1"}
created2018-09-11 10:54:57
active2018-09-12 07:05:33
last_payout2018-09-18 10:54:57
depth2
children2
net_rshares0
vote_rshares0
children_abs_rshares0
cashout_time1969-12-31 23:59:59
max_cashout_time1969-12-31 23:59:59
total_vote_weight0
reward_weight10,000
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
author_rewards0
net_votes1
root_authorfrdem3dot0
root_permlinksteem-python-question
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
allow_repliestrue
allow_votestrue
allow_curation_rewardstrue
beneficiaries[]
root_title"Steem-python question"
pending_payout_value0.000 SBD
total_pending_payout_value0.000 STEEM
author_reputation1,175,646,673,857
promoted0.000 SBD
body_length0
reblogged_by[]
author_curate_reward""
vote details (1)

vote your-acct "frdem3dot0" "re-tobixen-re-frdem3dot0-steem-python-question-20180911t105457793z" 100 true
post_comment your-acct "re-frdem3dot0-re-tobixen-re-frdem3dot0-steem-python-question-20180919t224339960z" "frdem3dot0" "re-tobixen-re-frdem3dot0-steem-python-question-20180911t105457793z" "" "your reply.." "{}" true

View on official site
@tobixen ·
I already have some scripts for checking the average market rate for various crypto currencies and setting up market maker orders towards some few exchanges.  I was making great profits running those scripts towards some bad Norwegian exchange with low turnover and stupid customers, eventually I was thrown out of that exchange, I don't think I'm earning much money on it as it is now (but I think it's still useful for converting crypto currencies for the lowest possible cost).  I also doubt I would earn much money on using those scripts for buying SBD on the market and converting it back to steem, but at least I would be able to offer a service to the community (reduce the SBD debt) without paying too much for it.
json_metadata{"tags":["steem"],"app":"steemit/0.1"}
created2018-09-11 21:17:45
active2018-09-12 07:05:33
last_payout2018-09-18 21:17:45
depth3
children1
net_rshares0
vote_rshares0
children_abs_rshares0
cashout_time1969-12-31 23:59:59
max_cashout_time1969-12-31 23:59:59
total_vote_weight0
reward_weight10,000
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
author_rewards0
net_votes0
root_authorfrdem3dot0
root_permlinksteem-python-question
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
allow_repliestrue
allow_votestrue
allow_curation_rewardstrue
beneficiaries[]
root_title"Steem-python question"
pending_payout_value0.000 SBD
total_pending_payout_value0.000 STEEM
author_reputation11,191,239,331,989
promoted0.000 SBD
body_length0
reblogged_by[]

vote your-acct "tobixen" "re-frdem3dot0-re-tobixen-re-frdem3dot0-steem-python-question-20180911t211744732z" 100 true
post_comment your-acct "re-tobixen-re-frdem3dot0-re-tobixen-re-frdem3dot0-steem-python-question-20180919t224339961z" "tobixen" "re-frdem3dot0-re-tobixen-re-frdem3dot0-steem-python-question-20180911t211744732z" "" "your reply.." "{}" true

View on official site
@frdem3dot0 ·
I was also thinking about a bot that will just work the steem sbd markets. But it might be risky with HF20 incoming that may potentially break the low peg to $. The bot I have in mind would obviously use this to evaluate clear buying opportunities and that may be flawed. 

Realistically the peg will hold well until the next major crash, so there may be some opportunity.
👍  
json_metadata{"tags":["steem"],"app":"steemit/0.1"}
created2018-09-12 07:05:33
active2018-09-12 07:05:33
last_payout2018-09-19 07:05:33
depth4
children0
net_rshares0
vote_rshares0
children_abs_rshares0
cashout_time1969-12-31 23:59:59
max_cashout_time1969-12-31 23:59:59
total_vote_weight0
reward_weight10,000
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
author_rewards0
net_votes1
root_authorfrdem3dot0
root_permlinksteem-python-question
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
allow_repliestrue
allow_votestrue
allow_curation_rewardstrue
beneficiaries[]
root_title"Steem-python question"
pending_payout_value0.000 SBD
total_pending_payout_value0.000 STEEM
author_reputation1,175,646,673,857
promoted0.000 SBD
body_length0
reblogged_by[]
author_curate_reward""
vote details (1)

vote your-acct "frdem3dot0" "re-tobixen-re-frdem3dot0-re-tobixen-re-frdem3dot0-steem-python-question-20180912t070612410z" 100 true
post_comment your-acct "re-frdem3dot0-re-tobixen-re-frdem3dot0-re-tobixen-re-frdem3dot0-steem-python-question-20180919t224339962z" "frdem3dot0" "re-tobixen-re-frdem3dot0-re-tobixen-re-frdem3dot0-steem-python-question-20180912t070612410z" "" "your reply.." "{}" true

View on official site
@holger80 · (edited)
$0.05
A working solution with beem (`pip install beem` installs it):
```
from beem import Steem
from beem.account import Account
from beem.snapshot import AccountSnapshot


if __name__ == "__main__":
    stm = Steem()
    account = Account("holger80", steem_instance=stm)
    
    followers = account.get_followers()
    print("%d accounts follow %s" % (len(followers), account["name"]))
    
    ops = []
    for op in account.history(only_ops=["delegate_vesting_shares"]):
        ops.append(op)
    
    acc_info = AccountSnapshot(account, account_history=ops, steem_instance=stm)
    acc_info.build()
    data = acc_info.get_data()
    delegated_vests_in = data["delegated_vests_in"]
    delegated_sp_in = {}
    for d in delegated_vests_in:
        delegated_sp_in[d] = stm.vests_to_sp(delegated_vests_in[d])
    print("Incoming delegations: %s" % str(delegated_sp_in))
  ```
👍  , ,
json_metadata{"tags":["steem"],"app":"steemit/0.1"}
last_update2018-09-11 11:08:27
created2018-09-11 10:30:45
active2018-09-11 13:31:21
last_payout2018-09-18 10:30:45
depth1
children3
net_rshares0
vote_rshares0
children_abs_rshares0
cashout_time1969-12-31 23:59:59
max_cashout_time1969-12-31 23:59:59
total_vote_weight0
reward_weight10,000
total_payout_value0.042 SBD
curator_payout_value0.011 SBD
author_rewards58
net_votes3
root_authorfrdem3dot0
root_permlinksteem-python-question
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
allow_repliestrue
allow_votestrue
allow_curation_rewardstrue
beneficiaries[]
root_title"Steem-python question"
pending_payout_value0.000 SBD
total_pending_payout_value0.000 STEEM
author_reputation18,081,724,208,299
promoted0.000 SBD
body_length0
reblogged_by[]
author_curate_reward""
vote details (3)

vote your-acct "holger80" "re-frdem3dot0-steem-python-question-20180911t103041856z" 100 true
post_comment your-acct "re-holger80-re-frdem3dot0-steem-python-question-20180919t224339964z" "holger80" "re-frdem3dot0-steem-python-question-20180911t103041856z" "" "your reply.." "{}" true

View on official site
@frdem3dot0 ·
thanks a lot!
👍  
json_metadata{"tags":["steem"],"app":"steemit/0.1"}
created2018-09-11 10:59:42
active2018-09-11 10:59:42
last_payout2018-09-18 10:59:42
depth2
children0
net_rshares0
vote_rshares0
children_abs_rshares0
cashout_time1969-12-31 23:59:59
max_cashout_time1969-12-31 23:59:59
total_vote_weight0
reward_weight10,000
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
author_rewards0
net_votes1
root_authorfrdem3dot0
root_permlinksteem-python-question
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
allow_repliestrue
allow_votestrue
allow_curation_rewardstrue
beneficiaries[]
root_title"Steem-python question"
pending_payout_value0.000 SBD
total_pending_payout_value0.000 STEEM
author_reputation1,175,646,673,857
promoted0.000 SBD
body_length0
reblogged_by[]
author_curate_reward""
vote details (1)

vote your-acct "frdem3dot0" "re-holger80-re-frdem3dot0-steem-python-question-20180911t105942955z" 100 true
post_comment your-acct "re-frdem3dot0-re-holger80-re-frdem3dot0-steem-python-question-20180919t224339965z" "frdem3dot0" "re-holger80-re-frdem3dot0-steem-python-question-20180911t105942955z" "" "your reply.." "{}" true

View on official site
@culgin ·
I think the Account.history function isn't available on steem-python. I should have started using beem earlier. Haha..

Posted using [Partiko Android](https://steemit.com/@partiko-android)
json_metadata{"app":"partiko"}
created2018-09-11 11:54:36
active2018-09-11 13:31:21
last_payout2018-09-18 11:54:36
depth2
children1
net_rshares0
vote_rshares0
children_abs_rshares0
cashout_time1969-12-31 23:59:59
max_cashout_time1969-12-31 23:59:59
total_vote_weight0
reward_weight10,000
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
author_rewards0
net_votes0
root_authorfrdem3dot0
root_permlinksteem-python-question
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
allow_repliestrue
allow_votestrue
allow_curation_rewardstrue
beneficiaries[]
root_title"Steem-python question"
pending_payout_value0.000 SBD
total_pending_payout_value0.000 STEEM
author_reputation22,824,176,751,051
promoted0.000 SBD
body_length0
reblogged_by[]

vote your-acct "culgin" "culgin-re-holger80-re-frdem3dot0-steem-python-question-20180911t115435709z" 100 true
post_comment your-acct "re-culgin-culgin-re-holger80-re-frdem3dot0-steem-python-question-20180919t224339966z" "culgin" "culgin-re-holger80-re-frdem3dot0-steem-python-question-20180911t115435709z" "" "your reply.." "{}" true

View on official site
@frdem3dot0 ·
Maybe I should also switch to beem...
👍  
json_metadata{"tags":["steem"],"app":"steemit/0.1"}
created2018-09-11 13:31:21
active2018-09-11 13:31:21
last_payout2018-09-18 13:31:21
depth3
children0
net_rshares0
vote_rshares0
children_abs_rshares0
cashout_time1969-12-31 23:59:59
max_cashout_time1969-12-31 23:59:59
total_vote_weight0
reward_weight10,000
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
author_rewards0
net_votes1
root_authorfrdem3dot0
root_permlinksteem-python-question
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
allow_repliestrue
allow_votestrue
allow_curation_rewardstrue
beneficiaries[]
root_title"Steem-python question"
pending_payout_value0.000 SBD
total_pending_payout_value0.000 STEEM
author_reputation1,175,646,673,857
promoted0.000 SBD
body_length0
reblogged_by[]
author_curate_reward""
vote details (1)

vote your-acct "frdem3dot0" "re-culgin-culgin-re-holger80-re-frdem3dot0-steem-python-question-20180911t133122117z" 100 true
post_comment your-acct "re-frdem3dot0-re-culgin-culgin-re-holger80-re-frdem3dot0-steem-python-question-20180919t224339967z" "frdem3dot0" "re-culgin-culgin-re-holger80-re-frdem3dot0-steem-python-question-20180911t133122117z" "" "your reply.." "{}" true

View on official site
@hijosdelhombre ·
**Speed Difference?**
json_metadata{"tags":["steem"],"app":"steemit/0.1"}
created2018-09-11 10:48:45
active2018-09-11 10:56:42
last_payout2018-09-18 10:48:45
depth1
children1
net_rshares0
vote_rshares0
children_abs_rshares0
cashout_time1969-12-31 23:59:59
max_cashout_time1969-12-31 23:59:59
total_vote_weight0
reward_weight10,000
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
author_rewards0
net_votes0
root_authorfrdem3dot0
root_permlinksteem-python-question
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
allow_repliestrue
allow_votestrue
allow_curation_rewardstrue
beneficiaries[]
root_title"Steem-python question"
pending_payout_value0.000 SBD
total_pending_payout_value0.000 STEEM
author_reputation13,139,972,099,222
promoted0.000 SBD
body_length0
reblogged_by[]

vote your-acct "hijosdelhombre" "re-frdem3dot0-steem-python-question-20180911t104845659z" 100 true
post_comment your-acct "re-hijosdelhombre-re-frdem3dot0-steem-python-question-20180919t224339968z" "hijosdelhombre" "re-frdem3dot0-steem-python-question-20180911t104845659z" "" "your reply.." "{}" true

View on official site
@frdem3dot0 ·
$0.03
so far I find that the speed is mostly limited by the communication with the nodes.
👍  ,
json_metadata{"tags":["steem"],"app":"steemit/0.1"}
created2018-09-11 10:56:42
active2018-09-11 10:56:42
last_payout2018-09-18 10:56:42
depth2
children0
net_rshares0
vote_rshares0
children_abs_rshares0
cashout_time1969-12-31 23:59:59
max_cashout_time1969-12-31 23:59:59
total_vote_weight0
reward_weight10,000
total_payout_value0.020 SBD
curator_payout_value0.005 SBD
author_rewards28
net_votes2
root_authorfrdem3dot0
root_permlinksteem-python-question
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
allow_repliestrue
allow_votestrue
allow_curation_rewardstrue
beneficiaries[]
root_title"Steem-python question"
pending_payout_value0.000 SBD
total_pending_payout_value0.000 STEEM
author_reputation1,175,646,673,857
promoted0.000 SBD
body_length0
reblogged_by[]
author_curate_reward""
vote details (2)

vote your-acct "frdem3dot0" "re-hijosdelhombre-re-frdem3dot0-steem-python-question-20180911t105640997z" 100 true
post_comment your-acct "re-frdem3dot0-re-hijosdelhombre-re-frdem3dot0-steem-python-question-20180919t224339969z" "frdem3dot0" "re-hijosdelhombre-re-frdem3dot0-steem-python-question-20180911t105640997z" "" "your reply.." "{}" true

View on official site
@culgin · (edited)
$0.13
I tried to do something similar to get delegation info of any account.

https://steemit.com/steem/@culgin/finding-out-who-delegated-to-me-with-python-is-there-an-easier-way

You will find that it takes a long time to generate delegation info.

Posted using [Partiko Android](https://steemit.com/@partiko-android)
👍  , ,
json_metadata{"app":"partiko"}
last_update2018-09-11 11:33:45
created2018-09-11 11:18:27
active2018-09-11 13:44:12
last_payout2018-09-18 11:18:27
depth1
children2
net_rshares0
vote_rshares0
children_abs_rshares0
cashout_time1969-12-31 23:59:59
max_cashout_time1969-12-31 23:59:59
total_vote_weight0
reward_weight10,000
total_payout_value0.097 SBD
curator_payout_value0.030 SBD
author_rewards134
net_votes3
root_authorfrdem3dot0
root_permlinksteem-python-question
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
allow_repliestrue
allow_votestrue
allow_curation_rewardstrue
beneficiaries[]
root_title"Steem-python question"
pending_payout_value0.000 SBD
total_pending_payout_value0.000 STEEM
author_reputation22,824,176,751,051
promoted0.000 SBD
body_length0
reblogged_by[]
author_curate_reward""
vote details (3)

vote your-acct "culgin" "culgin-re-frdem3dot0-steem-python-question-20180911t111824626z" 100 true
post_comment your-acct "re-culgin-culgin-re-frdem3dot0-steem-python-question-20180919t224339971z" "culgin" "culgin-re-frdem3dot0-steem-python-question-20180911t111824626z" "" "your reply.." "{}" true

View on official site
@frdem3dot0 ·
$0.03
yes, that is similar to my current implementation where I brutally search the entire account transactions of the past .
👍  , ,
json_metadata{"tags":["steem"],"app":"steemit/0.1"}
created2018-09-11 13:30:24
active2018-09-11 13:44:12
last_payout2018-09-18 13:30:24
depth2
children1
net_rshares0
vote_rshares0
children_abs_rshares0
cashout_time1969-12-31 23:59:59
max_cashout_time1969-12-31 23:59:59
total_vote_weight0
reward_weight10,000
total_payout_value0.028 SBD
curator_payout_value0.004 SBD
author_rewards39
net_votes3
root_authorfrdem3dot0
root_permlinksteem-python-question
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
allow_repliestrue
allow_votestrue
allow_curation_rewardstrue
beneficiaries[]
root_title"Steem-python question"
pending_payout_value0.000 SBD
total_pending_payout_value0.000 STEEM
author_reputation1,175,646,673,857
promoted0.000 SBD
body_length0
reblogged_by[]
author_curate_reward""
vote details (3)

vote your-acct "frdem3dot0" "re-culgin-culgin-re-frdem3dot0-steem-python-question-20180911t133024016z" 100 true
post_comment your-acct "re-frdem3dot0-re-culgin-culgin-re-frdem3dot0-steem-python-question-20180919t224339972z" "frdem3dot0" "re-culgin-culgin-re-frdem3dot0-steem-python-question-20180911t133024016z" "" "your reply.." "{}" true

View on official site
@culgin ·
$0.03
I think that's necessary. I checked with @justyy, who runs the following site, https://helloacm.com/tools/steemit/delegatees/ 

They too need to run the API in the background and store the delegation information in a database to provide a faster way to check delegation info.

Posted using [Partiko Android](https://steemit.com/@partiko-android)
👍  ,
json_metadata{"app":"partiko"}
created2018-09-11 13:44:12
active2018-09-11 13:44:12
last_payout2018-09-18 13:44:12
depth3
children0
net_rshares0
vote_rshares0
children_abs_rshares0
cashout_time1969-12-31 23:59:59
max_cashout_time1969-12-31 23:59:59
total_vote_weight0
reward_weight10,000
total_payout_value0.026 SBD
curator_payout_value0.007 SBD
author_rewards36
net_votes2
root_authorfrdem3dot0
root_permlinksteem-python-question
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
allow_repliestrue
allow_votestrue
allow_curation_rewardstrue
beneficiaries[]
root_title"Steem-python question"
pending_payout_value0.000 SBD
total_pending_payout_value0.000 STEEM
author_reputation22,824,176,751,051
promoted0.000 SBD
body_length0
reblogged_by[]
author_curate_reward""
vote details (2)

vote your-acct "culgin" "culgin-re-frdem3dot0-re-culgin-culgin-re-frdem3dot0-steem-python-question-20180911t134412658z" 100 true
post_comment your-acct "re-culgin-culgin-re-frdem3dot0-re-culgin-culgin-re-frdem3dot0-steem-python-question-20180919t224339973z" "culgin" "culgin-re-frdem3dot0-re-culgin-culgin-re-frdem3dot0-steem-python-question-20180911t134412658z" "" "your reply.." "{}" true

View on official site
@pibara · (edited)
The number one advantage of using either been or asyncsteem instead of the official python library, no doubt is error handling. I would argue that for a **new** project choosing one of the alternatives is a no brainer and the question shouldn't be **if** you should use an alternative library, but **what** alternative library you should use. 

The two main choices I believe are **beem**, a library with a close to complete python API that allows you to do all that the official lib does but without most of its issues, and **asyncsteem**, a library that doesn't implement signed operations, but that does implement its functionality in an **asynchronous** non blocking way, so it can be used with the Python Twisted framework, allowing for scalable networking implementation that don't require the old threadded can of worms approach, but use the non blocking asynchronous setup popularized in recent years by Node JS in the JavaScript world and different asio libs such as boost-asio in other languages .

So basically: 

* If you have a huge legacy code base, maybe keep using the legacy official library.
* If you start from zero and need signed operations, use beem.
* If you start from zero and need asynchronous non blocking operations, use asyncsteem.
* If you need both signing and async, currently, don't use Python

I think for this usecase, using an asynchronous approach would have its merits especially if you want some kind of web interface and don't want to be using a database all the time. 

You would want to keep something of an in memory cache, probably, spitting through the history of any account you find to be active that you haven't currently cached yet, so you don't need to do last second history exploration. Then you will want to update the cache on new transactions and timeouts  that update delegation . If, for example through web interface, an non-cached account is queried, only non-hits will take long to answer. 

You could probably do this with Been as well, but you will either need to use old school shared state concurrency (threads, locks, mutexes), or opt for using a database all the time for a data set that should easily fit in memory. With asyncsteem you could do it without threads, mutexes, locks or databases with just one single always running process . This is of cause assuming you need a web user interface. If these lookups are meant purely within the context of a pure STEEM only bot without any non-steem user interaction, then Beem would do just fine, and as you will want to use signed operations to interact with the world, Beem would actually be the best option.

Hope the above isn't too confusing.
👍  
json_metadata{"tags":["steem"],"app":"steemit/0.1"}
last_update2018-09-12 05:10:57
created2018-09-12 04:18:24
active2018-09-12 07:09:27
last_payout2018-09-19 04:18:24
depth1
children1
net_rshares0
vote_rshares0
children_abs_rshares0
cashout_time1969-12-31 23:59:59
max_cashout_time1969-12-31 23:59:59
total_vote_weight0
reward_weight10,000
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
author_rewards0
net_votes1
root_authorfrdem3dot0
root_permlinksteem-python-question
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
allow_repliestrue
allow_votestrue
allow_curation_rewardstrue
beneficiaries[]
root_title"Steem-python question"
pending_payout_value0.000 SBD
total_pending_payout_value0.000 STEEM
author_reputation3,587,548,217,306
promoted0.000 SBD
body_length0
reblogged_by[]
author_curate_reward""
vote details (1)

vote your-acct "pibara" "re-frdem3dot0-steem-python-question-20180912t041821114z" 100 true
post_comment your-acct "re-pibara-re-frdem3dot0-steem-python-question-20180919t224339975z" "pibara" "re-frdem3dot0-steem-python-question-20180912t041821114z" "" "your reply.." "{}" true

View on official site
@frdem3dot0 ·
$0.03
thanks a lot, that was a great summary. I will probably write my next project using beem.
👍  ,
json_metadata{"tags":["steem"],"app":"steemit/0.1"}
created2018-09-12 07:09:27
active2018-09-12 07:09:27
last_payout2018-09-19 07:09:27
depth2
children0
net_rshares0
vote_rshares0
children_abs_rshares0
cashout_time1969-12-31 23:59:59
max_cashout_time1969-12-31 23:59:59
total_vote_weight0
reward_weight10,000
total_payout_value0.021 SBD
curator_payout_value0.005 SBD
author_rewards29
net_votes2
root_authorfrdem3dot0
root_permlinksteem-python-question
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
allow_repliestrue
allow_votestrue
allow_curation_rewardstrue
beneficiaries[]
root_title"Steem-python question"
pending_payout_value0.000 SBD
total_pending_payout_value0.000 STEEM
author_reputation1,175,646,673,857
promoted0.000 SBD
body_length0
reblogged_by[]
author_curate_reward""
vote details (2)

vote your-acct "frdem3dot0" "re-pibara-re-frdem3dot0-steem-python-question-20180912t070927279z" 100 true
post_comment your-acct "re-frdem3dot0-re-pibara-re-frdem3dot0-steem-python-question-20180919t224339976z" "frdem3dot0" "re-pibara-re-frdem3dot0-steem-python-question-20180912t070927279z" "" "your reply.." "{}" true

View on official site
@steem-ua ·
#### Hi @frdem3dot0!

Your post was upvoted by @steem-ua, new Steem dApp, using UserAuthority for algorithmic post curation!
Your **UA** account score is currently 2.672 which ranks you at **#13643** across all Steem accounts.
Your rank has dropped 28 places in the last three days (old rank 13615).

In our last Algorithmic Curation Round, consisting of 316 contributions, your post is ranked at **#69**.
##### Evaluation of your UA score:

* Only a few people are following you, try to convince more people with good work.
* The readers like your work!
* Good user engagement!


**Feel free to join our [@steem-ua Discord server](https://discord.gg/KpBNYGz)**
json_metadata"{"app": "beem/0.19.54"}"
created2018-09-12 11:32:30
active2018-09-12 11:32:30
last_payout2018-09-19 11:32:30
depth1
children0
net_rshares0
vote_rshares0
children_abs_rshares0
cashout_time1969-12-31 23:59:59
max_cashout_time1969-12-31 23:59:59
total_vote_weight0
reward_weight10,000
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
author_rewards0
net_votes0
root_authorfrdem3dot0
root_permlinksteem-python-question
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
allow_repliestrue
allow_votestrue
allow_curation_rewardstrue
beneficiaries[]
root_title"Steem-python question"
pending_payout_value0.000 SBD
total_pending_payout_value0.000 STEEM
author_reputation12,648,839,567,805
promoted0.000 SBD
body_length0
reblogged_by[]

vote your-acct "steem-ua" "re-steem-python-question-20180912t113228z" 100 true
post_comment your-acct "re-steem-ua-re-steem-python-question-20180912t113228z-20180919t224339977z" "steem-ua" "re-steem-python-question-20180912t113228z" "" "your reply.." "{}" true


created by @roadscape