[steem-python](https://github.com/steemit/steem-python) :is [Steem](https://steem.io) the official Python library, has a bip38 encryption wallet and a practical cli utility(steempy). ![0.jpg](https://cdn.steemitimages.com/DQmTTwhM1fH6GcS9MYRGe33b9ApkdEMjHySNgSnN3dCGjre/0.jpg) However, for many Chinese users, the pain is that the official steem API node is often inaccessible. The advantage of beem is that it can automatically find the available steem API nodes. Most of the time, you don't need to worry about network access. So how to make the official steem-python as easy to use as beem? We can also try to use the function of dynamic switching the steem API node in the steem-python program. Dynamically switch the stem API node ----------------------------- Demonstration program (dynamic_nodes.py): ```python import steembase import steem from steem.steemd import Steemd from steem.account import Account from steem.blockchain import Blockchain steemd_nodes = [ 'https://anyx.io', 'https://steemd.minnowsupportproject.org', 'https://rpc.esteem.app', 'https://api.steemit.com', 'https://api.steem.house', 'https://gtg.steem.house:8090', 'https://appbasetest.timcliff.com', ] custom_instance = Steemd(nodes=steemd_nodes) tmpAccount = Account('dappcoder', steemd_instance=custom_instance) print('tmpAccount:', tmpAccount) print('') tmpBlockchain = Blockchain(mode='head', steemd_instance=custom_instance) print('tmpBlockchain:', tmpBlockchain) ``` run it:`python dynamic_nodes.py`
post_id | 83,965,910 |
---|---|
author | dappcoder |
permlink | let-the-official-steem-python-be-as-easy-to-use-as-beem-dynamically-search-for-available-steem-api-nodes |
category | hive-180932 |
json_metadata | {"tags":["steem","whalepower","dblog","actnearn","neoxian","palnet","zzan","jjm","lifestyle","marlians","mediaofficials","sct","sct-cn","sct-freeboard","upfundme","lassecash","spt","cc","steemleo","liv","vi","steemstem","stem","programming"],"image":["https:\/\/cdn.steemitimages.com\/DQmTTwhM1fH6GcS9MYRGe33b9ApkdEMjHySNgSnN3dCGjre\/0.jpg"],"links":["https:\/\/github.com\/steemit\/steem-python","https:\/\/steem.io"],"app":"steemleo\/0.1","format":"markdown"} |
created | 2020-02-01 03:38:12 |
last_update | 2020-02-01 03:38:12 |
depth | 0 |
children | 7 |
net_rshares | 7,904,315,004,415 |
last_payout | 2020-02-08 03:38:12 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.979 SBD |
curator_payout_value | 0.970 SBD |
pending_payout_value | 0.000 SBD |
promoted | 0.000 SBD |
body_length | 1,520 |
author_reputation | 71,889,699,236,580 |
root_title | "let the official steem-python be as easy to use as beem? Dynamically search for available steem API nodes" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 SBD |
percent_steem_dollars | 10,000 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
bullionstackers | 0 | 98,557,526,789 | 10% | ||
steemitboard | 0 | 15,687,784,714 | 1% | ||
pixresteemer | 0 | 831,784,207 | 1.95% | ||
investprosper | 0 | 4,947,837,633 | 14% | ||
raise-me-up | 0 | 0 | 0.01% | ||
statsexpert | 0 | 1,716,879,838 | 20% | ||
therabbitzone | 0 | 540,539,529 | 50% | ||
anonyvoter | 0 | 465,925,928 | 2% | ||
smartbee | 0 | 5,198,291,522 | 28% | ||
oakshieldholding | 0 | 926,045,249 | 28% | ||
laissez-faire | 0 | 72,118,905 | 100% | ||
pearltwin | 0 | 1,369,702,934 | 28% | ||
blockcreate | 0 | 35,990,299,530 | 11% | ||
leothecat | 0 | 419,288,989 | 72% | ||
leo.voter | 0 | 3,455,237,826,909 | 28% | ||
cn-leo | 0 | 113,162,906 | 2% | ||
chrono.leo | 0 | 224,877,891 | 14% | ||
neoxiancity | 0 | 10,542,708,704 | 20% | ||
zaku-leo | 0 | 1,038,812,642 | 28% | ||
abh12345.stem | 0 | 196,817,078 | 20% | ||
dappcoder | 0 | 634,911,358 | 100% | ||
tex.fund | 0 | 585,828,825 | 100% | ||
hnt | 0 | 670,549,268 | 100% | ||
acu.fund | 0 | 938,252,822 | 100% | ||
dblogbasicincome | 0 | 78,988,170 | 7% | ||
mana.bank | 0 | 5,119,611,947 | 100% | ||
acu.fund.witness | 0 | 683,948,904 | 100% | ||
spbank | 0 | 572,893,046 | 100% | ||
yaowl | 0 | 573,202,895 | 100% | ||
alanyao | 0 | 581,835,995 | 100% | ||
missingwolf | 0 | 605,666,600 | 100% | ||
xinhuaren | 0 | 571,925,213 | 100% | ||
acufund | 0 | 566,154,507 | 100% | ||
downvoter | 0 | 997,030,216 | 100% | ||
manabot1 | 0 | 556,341,188 | 100% | ||
manabot | 0 | 564,843,684 | 100% | ||
huaren.news | 0 | 3,709,576,115,457 | 100% | ||
cameron.barnes | 0 | 547,189,006 | 100% | ||
manabot2 | 0 | 555,234,422 | 100% | ||
sherryzhou | 0 | 572,650,982 | 98% | ||
goodvoter | 0 | 551,919,481 | 100% | ||
anonymity.inlet | 0 | 624,166,618 | 100% | ||
manabot3 | 0 | 558,949,731 | 100% | ||
manabot4 | 0 | 0 | 100% | ||
manabank | 0 | 538,211,216 | 100% | ||
texfund | 0 | 550,965,716 | 100% | ||
goodreader | 0 | 544,139,749 | 100% | ||
goodposter | 0 | 551,451,403 | 100% | ||
goodcurator | 0 | 2,508,353,020 | 100% | ||
goodauthor | 0 | 547,627,326 | 100% | ||
shanyi | 0 | 542,181,486 | 100% | ||
yuwenzhaobin | 0 | 552,359,514 | 100% | ||
huangyiru | 0 | 554,560,783 | 100% | ||
qiuruling | 0 | 544,201,618 | 100% | ||
tongpingxia | 0 | 540,035,162 | 100% | ||
fushuo | 0 | 547,910,752 | 100% | ||
downscaner | 0 | 615,690,883 | 100% | ||
wang.han | 0 | 541,788,948 | 97% | ||
anonym.inlet | 0 | 542,018,643 | 100% | ||
rongyongyu | 0 | 539,961,312 | 100% | ||
heyaochen | 0 | 546,863,211 | 100% | ||
miyijuan | 0 | 546,250,397 | 100% | ||
xiangsong | 0 | 541,926,513 | 100% | ||
haiyaochang | 0 | 541,140,236 | 100% | ||
zhangyanxie | 0 | 556,506,701 | 100% | ||
jiduanren | 0 | 539,961,096 | 100% | ||
hanyiya | 0 | 539,960,889 | 100% | ||
guxiefeng | 0 | 539,961,138 | 100% | ||
hejuangang | 0 | 539,960,405 | 100% | ||
mengyin | 0 | 539,960,107 | 100% | ||
liaohepeng | 0 | 543,812,052 | 100% | ||
gaituan | 0 | 539,959,502 | 100% | ||
quxibei | 0 | 539,959,325 | 100% | ||
putu.neoxian | 0 | 43,682,385 | 34% | ||
huarennews | 0 | 602,460,755 | 100% | ||
qukehan | 0 | 0 | 100% | ||
lvziyun | 0 | 445,484,925,556 | 100% | ||
chinesebi | 0 | 78,095,828,942 | 100% | ||
staryao | 0 | 903,985,442 | 100% | ||
mzmt | 0 | 0 | 100% |
Congratulations @dappcoder! You have completed the following achievement on the Steem blockchain and have been rewarded with new badge(s) : <table><tr><td><img src="https://steemitimages.com/60x70/http://steemitboard.com/@dappcoder/payout.png?202002010537"></td><td>You received more than 10 as payout for your posts. Your next target is to reach a total payout of 50</td></tr> </table> <sub>_You can view [your badges on your Steem Board](https://steemitboard.com/@dappcoder) and compare to others on the [Steem Ranking](https://steemitboard.com/ranking/index.php?name=dappcoder)_</sub> <sub>_If you no longer want to receive notifications, reply to this comment with the word_ `STOP`</sub> To support your work, I also upvoted your post! ###### [Vote for @Steemitboard as a witness](https://v2.steemconnect.com/sign/account-witness-vote?witness=steemitboard&approve=1) to get one more award and increased upvotes!
post_id | 83,969,602 |
---|---|
author | steemitboard |
permlink | steemitboard-notify-dappcoder-20200201t071832000z |
category | hive-180932 |
json_metadata | {"image":["https:\/\/steemitboard.com\/img\/notify.png"]} |
created | 2020-02-01 07:18:30 |
last_update | 2020-02-01 07:18:30 |
depth | 1 |
children | 0 |
net_rshares | 0 |
last_payout | 2020-02-08 07:18:30 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 SBD |
curator_payout_value | 0.000 SBD |
pending_payout_value | 0.000 SBD |
promoted | 0.000 SBD |
body_length | 921 |
author_reputation | 38,705,954,145,809 |
root_title | "let the official steem-python be as easy to use as beem? Dynamically search for available steem API nodes" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 SBD |
percent_steem_dollars | 10,000 |
!great !shop
post_id | 83,981,006 |
---|---|
author | chinesebi |
permlink | q515t4 |
category | hive-180932 |
json_metadata | {"app":"steemit\/0.2"} |
created | 2020-02-01 16:00:42 |
last_update | 2020-02-01 16:00:42 |
depth | 1 |
children | 0 |
net_rshares | 278,691,989,929 |
last_payout | 2020-02-08 16:00:42 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.023 SBD |
curator_payout_value | 0.023 SBD |
pending_payout_value | 0.000 SBD |
promoted | 0.000 SBD |
body_length | 12 |
author_reputation | 4,872,790,926,189 |
root_title | "let the official steem-python be as easy to use as beem? Dynamically search for available steem API nodes" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 SBD |
percent_steem_dollars | 10,000 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
lvziyun | 0 | 278,691,989,929 | 100% |
你好鸭,dappcoder! @chinesebi给您叫了一份外卖! 由 @xiaoyuanwmm 村凤 在艳阳高照 骑着共享单车 给您送来 **桃酥饼** <br> ![](https://steemitimages.com/DQmfLs1oN9q6aMSKnKo76NVpGXk2QzXtT3kdW5CxEEMYrS7/IMG_3346.JPG) 吃饱了吗?跟我猜拳吧! **石头,剪刀,布~** 如果您对我的服务满意,请不要吝啬您的点赞~ @onepagex
post_id | 83,981,014 |
---|---|
author | teamcn-shop |
permlink | q515t4 |
category | hive-180932 |
json_metadata | "{"app":"teamcn-shop bot\/1.0"}" |
created | 2020-02-01 16:00:54 |
last_update | 2020-02-01 16:00:54 |
depth | 1 |
children | 2 |
net_rshares | 0 |
last_payout | 2020-02-08 16:00:54 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 SBD |
curator_payout_value | 0.000 SBD |
pending_payout_value | 0.000 SBD |
promoted | 0.000 SBD |
body_length | 236 |
author_reputation | 65,900,527,192,856 |
root_title | "let the official steem-python be as easy to use as beem? Dynamically search for available steem API nodes" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 SBD |
percent_steem_dollars | 10,000 |
剪刀
post_id | 83,981,636 |
---|---|
author | chinesebi |
permlink | q5171v |
category | hive-180932 |
json_metadata | {"app":"steemit\/0.2"} |
created | 2020-02-01 16:27:33 |
last_update | 2020-02-01 16:27:48 |
depth | 2 |
children | 1 |
net_rshares | 308,217,145,146 |
last_payout | 2020-02-08 16:27:33 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.025 SBD |
curator_payout_value | 0.026 SBD |
pending_payout_value | 0.000 SBD |
promoted | 0.000 SBD |
body_length | 2 |
author_reputation | 4,872,790,926,189 |
root_title | "let the official steem-python be as easy to use as beem? Dynamically search for available steem API nodes" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 SBD |
percent_steem_dollars | 10,000 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
lvziyun | 0 | 308,217,145,146 | 100% |
https://3.bp.blogspot.com/-5H1CgvU1VD8/WoGwGhtQe6I/AAAAAAATXJU/KY0eCFjyWT02REouDSyRz-o2Pf-Q0OEHwCLcBGAs/s1600/AW785125_21.gif It’s a tie! 平局!想不到你也出鸡爪!
post_id | 83,981,640 |
---|---|
author | teamcn-shop |
permlink | q5171v |
category | hive-180932 |
json_metadata | "{"app":"teamcn-shop bot\/1.0"}" |
created | 2020-02-01 16:27:42 |
last_update | 2020-02-01 16:27:57 |
depth | 3 |
children | 0 |
net_rshares | 0 |
last_payout | 2020-02-08 16:27:42 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 SBD |
curator_payout_value | 0.000 SBD |
pending_payout_value | 0.000 SBD |
promoted | 0.000 SBD |
body_length | 152 |
author_reputation | 65,900,527,192,856 |
root_title | "let the official steem-python be as easy to use as beem? Dynamically search for available steem API nodes" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 SBD |
percent_steem_dollars | 10,000 |
这是为何
post_id | 84,006,554 |
---|---|
author | mzmt |
permlink | q52zm3 |
category | hive-180932 |
json_metadata | {"app":"busy\/2.5.4"} |
created | 2020-02-02 15:42:03 |
last_update | 2020-02-02 15:42:03 |
depth | 1 |
children | 1 |
net_rshares | 0 |
last_payout | 2020-02-09 15:42:03 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 SBD |
curator_payout_value | 0.000 SBD |
pending_payout_value | 0.000 SBD |
promoted | 0.000 SBD |
body_length | 4 |
author_reputation | 0 |
root_title | "let the official steem-python be as easy to use as beem? Dynamically search for available steem API nodes" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 SBD |
percent_steem_dollars | 10,000 |
不可描述的原因比较多.
post_id | 84,008,717 |
---|---|
author | dappcoder |
permlink | q533wy |
category | hive-180932 |
json_metadata | {"app":"busy\/2.5.4"} |
created | 2020-02-02 17:15:12 |
last_update | 2020-02-02 17:15:12 |
depth | 2 |
children | 0 |
net_rshares | 191,829,741,169 |
last_payout | 2020-02-09 17:15:12 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.016 SBD |
curator_payout_value | 0.015 SBD |
pending_payout_value | 0.000 SBD |
promoted | 0.000 SBD |
body_length | 11 |
author_reputation | 71,889,699,236,580 |
root_title | "let the official steem-python be as easy to use as beem? Dynamically search for available steem API nodes" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 SBD |
percent_steem_dollars | 10,000 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
dappcoder | 0 | 613,943,013 | 100% | ||
mana.bank | 0 | 4,306,062,685 | 100% | ||
huaren.news | 0 | 90,503,626,737 | 2% | ||
lvziyun | 0 | 96,406,108,734 | 100% |