教你如何批量关注steemit小伙伴

skenan(60)
Published in
#cn
Words
84
Reading
1 min
Listen
Play
9y

需求

一键关注自己微信群里的steemit小伙伴,完整代码

前提

  1. Install python3

  2. Install wxpy: pip3 install -U wxpy

  3. Install steem-python: pip3 install -U steem

实现

from wxpy import *
bot = Bot()

group = bot.groups().search('')[0]

for member in group:
    name = member.display_name
        # 群备注要以@+用户名形式
    if '@' in name:
        print(name[name.index('@'):])

  • 使用steem-python关注用户,先找到自己的private_posting_key 和 private_active_key

alt


from steem import Steem

s = Steem(keys=['', ''])

# justyy指你要关注的人,skenan指自己
s.commit.follow('justyy', ['blog'], 'skenan')

结束

欢迎提出新的需求!

教你如何批量关注steemit小伙伴 | Ecency