[steem-python](https://github.com/steemit/steem-python) :是 [Steem](https://steem.io) 官方的 Python 库Steem Python,有一个BIP38加密钱包和一个实用的CLI实用程序 steempy。 ![屏幕快照 2020-01-31 下午5.16.37.png](https://cdn.steemitimages.com/DQmVFWvmtep5HzRpRZPusEAVf8BedyM574WX8YARR9WFsDC/%E5%B1%8F%E5%B9%95%E5%BF%AB%E7%85%A7%202020-01-31%20%E4%B8%8B%E5%8D%885.16.37.png) 但是,很多对于中文用户来说,痛苦的事,steem 官方 API 节点,经常不可访问. beem的好处是,可以自动寻找可用的 steem 服务器节点,大多数时候,不用担心网络访问的问题. 那么如何让 官方的 steem-python 像 beem 一样 好用? 我们也可尝试在 steem-python 的程序中,使用动态切换 steem API 节点的功能. 动态切换 steem API 节点 ----------------------------- 示范程序(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) ``` 执行程序:`python dynamic_nodes.py`
post_id | 83,942,391 |
---|---|
author | dappcoder |
permlink | steem-python-beem-steem-api |
category | hive-180932 |
json_metadata | {"tags":["cn","steem","whalepower","dblog","hive-143316","actnearn","neoxian","palnet","zzan","jjm","lifestyle","marlians","mediaofficials","sct-cn","sct-freeboard","upfundme","lassecash","spt","cc","steemleo","cn-stem","steemstem","cn-programming","sct","busy"],"image":["https:\/\/cdn.steemitimages.com\/DQmVFWvmtep5HzRpRZPusEAVf8BedyM574WX8YARR9WFsDC\/%E5%B1%8F%E5%B9%95%E5%BF%AB%E7%85%A7%202020-01-31%20%E4%B8%8B%E5%8D%885.16.37.png"],"links":["https:\/\/github.com\/steemit\/steem-python","https:\/\/steem.io"],"app":"busy\/2.5.4","format":"markdown"} |
created | 2020-01-31 09:38:45 |
last_update | 2020-01-31 09:45:03 |
depth | 0 |
children | 2 |
net_rshares | 3,965,204,005,291 |
last_payout | 2020-02-07 09:38:45 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.415 SBD |
curator_payout_value | 0.413 SBD |
pending_payout_value | 0.000 SBD |
promoted | 0.000 SBD |
body_length | 1,305 |
author_reputation | 71,889,699,236,580 |
root_title | "如让官方的 steem-python 像 beem 一样 好用?动态寻找可用的 steem API 节点" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 SBD |
percent_steem_dollars | 10,000 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
busy.org | 0 | 53,210,216 | 0.4% | ||
steemitboard | 0 | 17,078,618,267 | 1% | ||
pixresteemer | 0 | 842,027,471 | 1.95% | ||
raise-me-up | 0 | 0 | 0.01% | ||
anonyvoter | 0 | 470,329,259 | 2% | ||
laissez-faire | 0 | 50,882,988 | 100% | ||
real-mccoy | 0 | 347,784,647 | 100% | ||
odds-ends | 0 | 2,063,694,956 | 100% | ||
cn-leo | 0 | 115,029,950 | 2% | ||
dappcoder | 0 | 634,911,358 | 100% | ||
tex.fund | 0 | 585,828,825 | 100% | ||
hnt | 0 | 672,501,397 | 100% | ||
acu.fund | 0 | 938,252,822 | 100% | ||
thebilpcointrain | 0 | 16,141,846 | 1% | ||
bilpcoin.pay | 0 | 136,443,678 | 1% | ||
dblogbasicincome | 0 | 80,247,324 | 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,370,003,102,598 | 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 | 541,651,052 | 99% | ||
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% | ||
huarennews | 0 | 602,460,755 | 100% | ||
qukehan | 0 | 0 | 100% | ||
lvziyun | 0 | 457,922,274,645 | 100% | ||
chinesebi | 0 | 78,576,394,150 | 100% | ||
staryao | 0 | 932,129,341 | 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/votes.png?202001311341"></td><td>You distributed more than 400 upvotes. Your next target is to reach 500 upvotes.</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,950,925 |
---|---|
author | steemitboard |
permlink | steemitboard-notify-dappcoder-20200131t152253000z |
category | hive-180932 |
json_metadata | {"image":["https:\/\/steemitboard.com\/img\/notify.png"]} |
created | 2020-01-31 15:22:51 |
last_update | 2020-01-31 15:22:51 |
depth | 1 |
children | 0 |
net_rshares | 0 |
last_payout | 2020-02-07 15:22:51 |
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 | 899 |
author_reputation | 38,705,954,145,809 |
root_title | "如让官方的 steem-python 像 beem 一样 好用?动态寻找可用的 steem API 节点" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 SBD |
percent_steem_dollars | 10,000 |
多搞一些机器人出来:)
post_id | 83,981,054 |
---|---|
author | chinesebi |
permlink | q515vw |
category | hive-180932 |
json_metadata | {"app":"steemit\/0.2"} |
created | 2020-02-01 16:02:21 |
last_update | 2020-02-01 16:02:21 |
depth | 1 |
children | 0 |
net_rshares | 302,071,154,697 |
last_payout | 2020-02-08 16:02:21 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.025 SBD |
curator_payout_value | 0.025 SBD |
pending_payout_value | 0.000 SBD |
promoted | 0.000 SBD |
body_length | 11 |
author_reputation | 4,872,790,926,189 |
root_title | "如让官方的 steem-python 像 beem 一样 好用?动态寻找可用的 steem API 节点" |
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 | 302,071,154,697 | 100% |