파이썬 beem의 Comment 객체에서 조회 가능한 키(key) 목록

in python •  11 months ago 

우선 파이선 beem의 Comment 객체를 이용한 포스트 정보 조회 예시는 아래의 링크를 참고하시기 바랍니다.

파이썬 beem에서 특정 포스트의 작성 시간과 수정 시간 확인

Comment 객체에서 조회 가능한 키(key) 목록은 아래와 같은 코드를 이용해서 확인해 볼 수 있습니다.

from beem import Steem
from beem.comment import Comment

node_list = ['https://api.steemit.com']

steem = Steem(node=node_list)

authorperm = 'joviansummer/b01bb'

comment = Comment(authorperm, blockchain_instance=steem)

for key in comment:
  print(key)

위의 코드를 실행해서 아래와 같은 결과를 얻을 수 있습니다.

post_id
author
permlink
category
title
body
json_metadata
created
last_update
depth
children
net_rshares
last_payout
cashout_time
total_payout_value
curator_payout_value
pending_payout_value
promoted
replies
body_length
active_votes
author_reputation
parent_author
parent_permlink
url
root_title
beneficiaries
max_accepted_payout
percent_steem_dollars
authorperm
tags
community

각 항목은 필요할 경우 반환되는 데이터 형식을 확인해서 활용하면 될 것 같습니다.


jsup 업보팅 서비스를 소개합니다.

jsup 업보팅 서비스를 활용한 일종의 오토보팅(auto-voting)

jsblurt 프로젝트 - 블러트 블럭체인 탐색기 (텔레그램 챗봇)

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE BLURT!