How To Get Started Making a Python Based Steemit Bot on CentOS 7 Using Piston

Most of the Steemit documentation and guides seem to be focused on Debian and Ubuntu. While I have great love for those distros I also happen to have a free CentOS 7 server available to me and wanted to start playing around making a Steemit bot. Here are the steps I took to successfully get Piston - The Swiss army knife for the Steem network working on CentOS 7. It wasn't too hard but there were a few packages that needed to be installed first and an annoying workaround to make the pip module work with Python 3.4 since the standard package doesn't work.

Commands:
yum install python34 python34-devel python34-setuptools

curl https://bootstrap.pypa.io/get-pip.py | python3.4

git clone https://github.com/xeroc/piston

cd piston

python3 setup.py install --user

You should now have Piston all setup and ready to start making bots here is their simple example bot:

from piston.steem import Steem
import os
import json
steem = Steem(wif="posting-key-for-default-author")
for c in steem.stream_comments():
    if "Boobie" in c["body"]:
        print(c.reply(".. doobidoo"))

Best of luck with your bot!

H2
H3
H4
3 columns
2 columns
1 column
10 Comments