jsup 2.1 - investor's relief (experiment on separation of investment and SNS)

by joviansummer original STEEMIT post: https://steemit.com/blog/@joviansummer/jsup-2-1-investor-s-relief-experiment-on-separation-of-investment-and-sns Hello, this is @joviansummer(witness: @jswit). I'm starting a new experiment regarding my @jsup vote service. The purpose of this experiment is to separate STEEM investment and social interaction(posting/commenting). For many people, writing a post daily(literally 365 posts per year) is not easy. It's not fun, and mandatory daily post only written for self-voting delegation service tends to result in useless low-quality content. I hope this new function of @jsup will reduce those posts, and also make it a bit more easy to invest in STEEM without worrying about daily posting. I think pressure of daily posting significantly undermines Steem as SNS. It's not fun. This is how it works: From 11:45 PM to 11:50 PM every night(reference time zone is GMT+9), @jsup checks if eligible delegators wrote something and received daily v...

파이썬(steem-python)에서 업보팅 수행

by joviansummer
original STEEMIT post: https://steemit.com/blog/@joviansummer/mjeae-steem-python


steem-python으로 업보팅을 하는 코드입니다. 오토보팅 서비스와 업보팅 서비스에서 사용중인 코드인데 정리해 둡니다.

업보팅을 수행하려면 포스트 식별자(id)를 알아야 합니다. 예를 들어 제가 어제 올린 글의 주소는 아래와 같습니다.

https://steemit.com/hive-141029/@joviansummer/jsup-templar-kr-id

여기서 포스트 식별자는 스팀 ID부터 시작해서 이어지는 뒷부분, 즉 아래와 같습니다.

joviansummer/jsup-templar-kr-id

예를 들어 jsup 계정으로 이 포스트에 보팅 비중 99.55%로 업보팅을 하는 상황이라면, 아래와 같이 코드가 구성됩니다. 당연히 업보팅을 하기 위해 포스팅키도 필요합니다.

from steem import Steem

# 보팅하는 id: jsup
VOTER_ID = 'jsup'
# jsup의 포스팅키: abcd라고 가정
POSTING_KEY = 'abcd'

# 포스트 식별자: joviansummer/jsup-templar-kr-id 
POST_ID = 'joviansummer/jsup-templar-kr-id'

# 보팅 비중: 99.55%
VOTE_WEIGHT = '99.55'

# 업보팅 수행 
user = Steem(keys=[POSTING_KEY])
user.commit.vote(POST_ID, float(VOTE_WEIGHT), VOTER_ID)

업보팅 코드 자체는 매우 간단한 것을 볼 수 있습니다. 실제로 코딩을 할 때는 업보팅 자체보다 보팅 비중 계산, 포스트 식별자 확인, 예외 처리 등 다른 부분이 훨씬 작업이 복잡합니다.

Comments

Popular posts from this blog

스티미언의 영향력 지수 계산

jsup/avle code update - you don't have to write post everyday

jsup/avle 보팅 코드 갱신 - 1일1포스팅 강박에서 벗어나기