How to Install Steem Python on Ubuntu 18.04 and Import Your Steemit Account using Steempy

View this thread on: d.buzz | hive.blog | peakd.com | ecency.com
·@bitpopsy·
0.000 HBD
How to Install Steem Python on Ubuntu 18.04 and Import Your Steemit Account using Steempy
<html>
<p>As outlined in my <a href="https://steemit.com/introduceyourself/@bitpopsy/introduce-yourself">introductory post</a>, I have a keen interest in <strong>Programming</strong>. 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.&nbsp;</p>
<p>Steemit has an interesting <a href="http://steem.readthedocs.io/en/latest/index.html">documentation</a> 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.&nbsp;</p>
<p>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.&nbsp;</p>
<h2>What will you learn?&nbsp;</h2>
<ol>
  <li>Installation of Steem-Python&nbsp;</li>
  <li>Importing your Steemit account using Steempy.&nbsp;</li>
</ol>
<h3>Requirements:&nbsp;</h3>
<ol>
  <li>Ubuntu 18.04 or higher.&nbsp;</li>
  <li>Python 3.6 or higher.&nbsp;</li>
</ol>
<h2>Step by Step Tutorial with Screenshots:&nbsp;</h2>
<p>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;&nbsp;</p>
<p><code>sudo apt-get update&nbsp;</code></p>
<p><img src="https://cdn.steemitimages.com/DQmVLm8ntERF35kA2cNy2WvckVgcoWpin4aaE46p6q2nbNZ/sudo%20apt%20updaet.png" width="1722" height="1178"/></p>
<h3>Install ssl library:&nbsp;</h3>
<p><code>sudo apt-get install libssl-dev&nbsp;</code></p>
<p><br></p>
<p><img src="https://cdn.steemitimages.com/DQmeHcAnrqNXKCiZRmdU5yWewNVxz2NLXhpHzFnQABfrxSs/libssl.png" width="1666" height="534"/></p>
<p>Now, you need to install pip. But, before proceeding let's check the version of python we are currently running.&nbsp;</p>
<p>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.&nbsp;</p>
<p><img src="https://cdn.steemitimages.com/DQmeSiQHi4H7jZR8bVxzAwncZJbMk3fJHXLjRqGgxvbebBj/python%20version.png" width="1658" height="680"/></p>
<h3>Installing pip:&nbsp;</h3>
<p><code>sudo apt-get install -y python3-pip&nbsp;</code></p>
<h3>Then install Steem-Python using the following command, this operation might take some time to finish;&nbsp;</h3>
<p><code>pip3 install -U steem&nbsp;</code></p>
<p><img src="https://cdn.steemitimages.com/DQmQzHCZx6XFESKMncZfCD6L6z25obfBeCU5G3c1Js4pmRa/steempy.png" width="1668" height="1172"/></p>
<p>Once the installation is done, type steempy and you should see following result confirming steem-python has been installed on your Distro.&nbsp;</p>
<h3>Now, lets import our account to Steempy:&nbsp;</h3>
<p><code>steempy importaccount [username]&nbsp;</code></p>
<p><img src="https://cdn.steemitimages.com/DQmQEvCJM9jQxUzqWddvtR88yNcKS9rhwch1cGQqLGZNSPp/importingaccount.png" width="1662" height="1170"/></p>
<p>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.</p>
<p>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.</p>
</html>
👍 , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,