파이썬 beem에서 특정 댓글이 어느 포스트의 댓글인지 확인

특정 댓글에 대해서 그 댓글이 어느 포스트에 달린 댓글인지 파이썬 beem을 이용해서 확인하는 방법입니다. 포스트, 댓글 모두 오소펌(authorperm)을 이용해서 식별합니다. 오소펌에 대한 내용은 이전 포스트를 참고하시기 바랍니다. 아래의 링크입니다.

펌링크(permlink) 관련 내용 간략하게 정리

댓글의 오소펌 대응하는 Comment 객체를 생성하고 여기서 parent_author, parent_permlink 키(key)를 확인하면 되겠습니다. 예제 코드는 아래와 같습니다.

from beem import Steem
from beem.comment import Comment

node_list = ["https://api.steemit.com"]
steem  = Steem(node=node_list)

authorperm = "@joviansummer/re-joviansummer-1662033828482"

comment = Comment(authorperm, blockchain_instance=steem)

parent_author = comment['parent_author']
parent_permlink = comment['parent_permlink']

parent_authorperm = '@' + parent_author + '/' + parent_permlink

print(parent_authorperm)

@joviansummer의 스팀 프로젝트

스팀 증인노드를 운영중입니다. @jswit에 증인투표해 주시면 감사하겠습니다.
(https://steemitwallet.com/~witnesses)

jswit 증인 노드 프로젝트를 시작합니다.

jsup 업보팅(upvoting) 서비스 소개

jsup 수혜자 지정 기능 추가

jsup 서비스에 큐레이션 보상 분배 기능이 추가되었습니다.

jSTEEM 프로젝트 - 텔레그램 챗봇으로 구현하는 스팀 블럭체인 탐색기

STEEM.NFT - 디지털 아트 보존 프로젝트



Posted through the AVLE Dapp (https://avle.io)

Sort:  

Upvoted! Thank you for supporting witness @jswit.
default.jpg

Coin Marketplace

STEEM 0.13
TRX 0.35
JST 0.033
BTC 125424.25
ETH 4729.67
SBD 0.79