How To Get Started Making a Python Based Steemit Bot on CentOS 7 Using Piston
steemit·@contentjunkie·
0.000 HBDHow To Get Started Making a Python Based Steemit Bot on CentOS 7 Using Piston
http://zdnet1.cbsistatic.com/hub/i/r/2014/10/02/b5939d8f-49e6-11e4-b6a0-d4ae52e95e57/resize/770xauto/c50c887e88405723e39ee5b778347dd2/centos-logo.png 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 <a href="http://piston.readthedocs.io/">Piston - The Swiss army knife for the Steem network</a> 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: ```python 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!
👍 contentjunkie, silaev, lee5, reaction, pheonike, elishagh1, laonie, xiaohui, somebody, xiaokongcom, xianjun, kimziv, myfirst, midnightoil, flysaga, microluck, sisterholics, areni, crypto-fan, hookerdown, ksena, tolyn, dmacshady, celebr1ty, masonmiler, manicmidnight, minnowsunited, endgame, noor818, stephen-somers, naifaz, pedrosgali, smartguylabcoat, biophil, luke490, brianphobos, allasyummyfood, weeds, jag, newsbot, movietrailers, statsbot, johnerfx, mrgrey, good-karma, mostar, braxton101, masterofcoin, snapcharts, tyramisoux,