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/4ykub6-steem-python


steem-python을 이용해서 스팀잇에 포스팅을 할 수 있습니다. 우선 가장 간단한 블로그 포스팅을 보겠습니다.

Steem 객체를 사용하며 포스팅키(private posting key)가 필요합니다.

from steem import Steem

# 포스팅키
posting_key = "5XXXXXX...."
# 작성자 ID
steem_id = "joviansummer"
# 제목
title = "포스팅합니다."
# 본문
body = "본문 첫번째 줄입니다.\n본문 2번째 줄입니다."
# 태그
tag_list = "kr krsuccess"

# 포스팅하기
s = Steem(keys=[posting_key])
s.commit.post(title=title, body=body, author=steem_id, tags=tag_list)

위와 같이 하면 joviansummer의 블로그(blog)에 포스트를 전송합니다. 위의 예시에서 변수 body를 보면 본문이 여러줄로 되어 있을 경우 "\n"으로 줄바꿈을 해 주는 것을 알 수 있습니다.

이미지 추가는 위의 방법으로 할 수 없으며, 이미 올려져 있는 이미지의 링크를 사용해야 합니다.

steem-python 문서(https://steem.readthedocs.io/en/latest/를 보면 커뮤니티를 지정할 때 post()에 community="커뮤니티 이름" 이런 식으로 지정할 수 있다고 나와 있는데, 실험해 본 바에 의하면 이렇게 해도 커뮤니티에 포스팅이 되지 않습니다. 이 부분은 추후에 별도로 포스팅하겠습니다.

Comments

Popular posts from this blog

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

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

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