replit.comで動作確認してみました。Python編
こんにちは、@aysuです。
ウェブサイト上で簡単に動作確認が行えます。
いくつか確認してみました。
- get_discussions_by_created
- get_discussions_by_blog
- get_accounts
- get_content
- get_account_history
get_discussions_by_created カテゴリに投稿された記事を新しい順に取得する。
from steem import Steem
s = Steem(nodes=['https://api.steememory.com'])
posts = s.get_discussions_by_created({
"limit":10,
"tag":"japanese"
})
for post in posts:
print (post["title"] +" "+ post["author"])
get_discussions_by_blog 指定アカウントの記事を取得する。
from steem import Steem
s = Steem(nodes=['https://api.steememory.com'])
posts = s.get_discussions_by_blog({
"limit":10,
"tag":"yasu"
})
for post in posts:
print (post["title"] +" "+ post["author"])
get_accounts アカウント情報を取得する。
import pprint
from steem import Steem
s = Steem(nodes=['https://api.steememory.com'])
user = s.get_accounts(["yasu"])
pprint.pprint(user[0]["posting_json_metadata"])
get_content 記事を取得する。
from steem import Steem
s = Steem(nodes=['https://api.steememory.com'])
c = s.get_content("yasu","python")
print (c["title"] +" "+ c["body"])
get_account_history アカウントヒストリーを表示する。
import pprint
from steem import Steem
s = Steem(nodes=['https://api.steememory.com'])
ah = s.get_account_history("yasu",-1,2)
pprint.pprint(ah)
ありがとうございました。
いらすとや
steemit サインアップ
steemit 知識
日本語 Steemit Discord (超初心者~誰でも)
@yasu.witness は、証人ノードと、seedノードを立ち上げています。STEEMブロックチェーン安定化の寄与となるよう取り組んでいます。また、APIノードの立ち上げに向けて、今は技術を習得しています。30票の1つを与えてくださると嬉しいです。
Simply go to the Steemit Wallet Witness list, scroll to the bottom, and fill in the form:
@yasu さん、こんにちは。
tomoyan.witnessに投票お願いします👇
https://steemitwallet.com/~witnesses
![](https://steemitimages.com/640x0/https://i.imgur.com/UJIIIWO.png)
SPデレゲーション報酬
Wintessに投票すると毎日の報酬がアップ!詳しくは👇
https://steemit.com/hive-161179/@japansteemit/sp-delegation-reward-update
💡 アップボートガイド 💡
分からない事は何でも質問して下さい🙇
![](https://steemitimages.com/640x0/https://i.imgur.com/jT2loCz.png)
![](https://steemitimages.com/640x0/https://i.imgur.com/Fk8AhOW.png)