by joviansummer original STEEMIT post: https://steemit.com/blog/@joviansummer/jsup-avle-code-update-you-don-t-have-to-write-post-everyday Hello, this is @joviansummer, developer of @jsup and@avle voting service. Voting service code for @jsup and @avle has been updated. I had been considering this update for a while, and recently I could come up with detailed implementation plan which resulted in a relatively swift code revision. The new added feature is capability to give daily upvote to the first thing you write for the day(timezone GMT+9) regardless of post or comment/reply. Writing a post everyday can be challenging. In that case, you can write a reply to receive daily upvote because writing a reply everyday is much easier and also a good way to engage in your community. Writing a post everyday just to get an upvote can be very tedious and exhausting, and post itself could easily become low-quality. There may be people who enjoy writing a post everyday, but we can't ignore th...
파이썬 beem을 이용한 포스팅 - 커뮤니티 포스트
- Get link
- X
- Other Apps
by joviansummer
original STEEMIT post: https://steemit.com/blog/@joviansummer/69nq2h-beem
파이썬 beem을 이용해서 특정 커뮤니티에 포스팅하는 방법입니다. 기본적으로 블로그 포스트와 거의 비슷하며, 어느 커뮤니티에 포스팅할 것인지를 parent permlink를 이용해서 지정합니다.
파이썬 beem을 이용한 블로그 포스트는 아래의 링크를 참고하시기 바랍니다.
블로그 포스트에서는 첫번째 태그(tag)를 parent permlink로 지정했지만, 커뮤니티 포스트에서는 커뮤니티 식별자를 지정합니다. 커뮤니티 식별자는 "hive-[번호]" 형식이며, 커뮤니티 접속 URL에서 확인할 수 있습니다.
예를 들어 "NOTICE & AutoVoting" 커뮤니티는 아래의 링크로 접속할 수 있습니다.
https://steemit.com/created/hive-141029
이 경우 커뮤니티 식별자는 hive-141029입니다. 이 커뮤니티에 포스팅을 한다면 아래의 코드처럼 할 수 있겠습니다. parent_permlink를 제외한 나머지 부분은 사실상 블로그 포스트와 동일합니다.
import json
from beem import Steem
from beembase.operations import Comment
from beem.transactionbuilder import TransactionBuilder
node_list = ["https://api.steemit.com"]
steem = Steem(node=node_list)
steem_id = 'joviansummer'
posting_key = '5XXXX...'
community_id = 'hive-141029'
author = steem_id
permlink = 'my-community-post-with-python-beem-test'
title = '시험용 포스트 (커뮤니티)'
body = '이것은 시험용 포스트입니다.\n커뮤니티 포스트입니다.'
tag_list = ['test','beem']
metadata = {"tags":tag_list}
parent_author = ''
parent_permlink = community_id
# 포스트 전송
tx = TransactionBuilder(blockchain_instance=steem)
tx.appendOps(Comment(**{"parent_author": parent_author, "parent_permlink": parent_permlink, "author": author, "permlink": permlink, "title": title, "body":body, "json_metadata": json.dumps(metadata)}))
tx.appendWif(posting_key)
signed_tx = tx.sign()
broadcast_tx = tx.broadcast(trx_id=True)
@joviansummer의 스팀 프로젝트
스팀 증인노드를 운영중입니다. @jswit에 증인투표해 주시면 감사하겠습니다.
(https://steemitwallet.com/~witnesses)
Popular posts from this blog
Nuitka - 파이썬 스크립트를 바이너리 실행 파일로 변환
by joviansummer original STEEMIT post: https://steemit.com/blog/@joviansummer/nuitka 파이썬과 관련해서 재미 있는 프로젝트를 찾았습니다. Nuitka라는 프로젝트입니다. https://github.com/Nuitka/Nuitka 파이썬 스크립트를 C언어로 변환한 후에 컴파일하여 바이너리 실행 파일로 만들어준다고 합니다. 아직 사용해 보진 않았는데요. 라즈베리파이처럼 작은 컴퓨터에서 컴퓨팅 자원이 아쉬운 상황이라면 파이썬 스크립트를 직접 실행하는 것보다 Nuitka로 컴파일한 바이너리를 실행하면 자원이 절약될 것 같기도 합니다. 소스 코드를 공개하지 않아야 할 경우(코드에 패스워드가 포함되어 있는 경우 등)에도 사용할 수 있을 것 같네요. 어쨌든 나중에 필요할 수도 있을 듯해서 여기에 메모해 둡니다. @joviansummer의 스팀 프로젝트 스팀 증인노드를 운영중입니다. @jswit에 증인투표해 주시면 감사하겠습니다. ( https://steemitwallet.com/~witnesses ) jswit 증인 노드 프로젝트를 시작합니다. jsup 업보팅(upvoting) 서비스 소개 jsup 수혜자 지정 기능 추가 jSTEEM 프로젝트 - 텔레그램 챗봇으로 구현하는 스팀 블럭체인 탐색기 STEEM.NFT - 디지털 아트 보존 프로젝트
[EN] STEEM-services: dapps/services webpage with sort and search functions
by joviansummer original STEEMIT post: https://steemit.com/blog/@joviansummer/en-steem-services-dapps-services-webpage-with-sort-and-search-functions Hello, this is @joviansummer(witness: @jswit). I expanded Steemit-Search website and made a simple webpage to list STEEM services. You can sort and search the records to find specific service. Here is the link: https://steemit.vercel.app/svcs If you want to add your service/dapp to the list, please write a reply to this post with the following information: category: social, nft, tool, voting, api, etc name: service/dapp name description: brief description for your service/dapp (preferably in English, less than 500 chars) link: link to your corresponding steemit post or webpage dev/admin: developer or admin account @steemchiller and @ety001, I took the liberty of adding SteemWorld, SDS API, and Steem Backup Data Server because I think they are essential services. If you want to add/modify/remove anything, please let me now. Than...
[ENG] jsup 2.0 - make your upvote great again
by joviansummer original STEEMIT post: https://steemit.com/blog/@joviansummer/eng-jsup-2-0-make-your-upvote-great-again Hello, this is @joviansummer, developer of @jsup service. Beneficiary feature of @jsup service has been updated. For more information about the beneficiary feature, please check the following post: How to support your family members and friends with @jsup curation project Previously, if you specified beneficiary, the beneficiary also received curation reward generated by upvote. Now, there are 2 modes of support for beneficiary. Upvote only: Daily upvote goes to the beneficiary, but curation/passive reward goes to the delegator. If the beneficiary does not write post, passive reward goes to the delegator. Full support: Same as before. Curation/passive reward goes to the beneficiary. You can specify beneficiary by replying to the latest post of @jsup or @joviansummer. Default mode is upvote only. If you want go give full support to your beneficiary, please...
Comments
Post a Comment