As outlined in my introductory post, I have a keen interest in Programming. Though, am not a hardcore programmer, I do write code in Python occasionally. Here, on Steemit I will be sharing tutorials on Python in regards to Steemit automation using python programs.
Steemit has an interesting documentation which makes developers build great bots like you come across on the platform every single day. I will start sharing tutorials from scratch, so that even a newbie will be able to learn writing bots for Steemit using Python.
There are so many tutorials written on this but most of them are for the outdated version of Ubuntu(either 16 or 17). The latest version of Ubuntu as of writing this article is 18.04. So, I will be sharing how to install Steem-Python for this version.
What will you learn?
- Installation of Steem-Python
- Importing your Steemit account using Steempy.
Requirements:
- Ubuntu 18.04 or higher.
- Python 3.6 or higher.
Step by Step Tutorial with Screenshots:
In my case am running Ubuntu 18.04 on Virtual Box, but this should work on the Desktop client as well. Before proceeding it's better to check for updates and install the same;
sudo apt-get update
Install ssl library:
sudo apt-get install libssl-dev
Now, you need to install pip. But, before proceeding let's check the version of python we are currently running.
Type python in your terminal and that should show which version of python is already installed. If you are running the latest version of Ubuntu, you will automatically have the latest version of python installed.
Installing pip:
sudo apt-get install -y python3-pip
Then install Steem-Python using the following command, this operation might take some time to finish;
pip3 install -U steem
Once the installation is done, type steempy and you should see following result confirming steem-python has been installed on your Distro.
Now, lets import our account to Steempy:
steempy importaccount [username]
It will ask for your password enter the same. Once that's done you can see the output as shown below. Now you can automate various tasks via terminal, which we will cover in the upcoming articles.
Do let me know what more tutorials you are looking for in your comments. I will be working on them in my upcoming posts. Also, if you face any issue following above steps, feel free to leave a comment and I will personally address it.