create account

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

View this thread on: hive.blogpeakd.comecency.com
· @bitpopsy · (edited)
$12.19
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>
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and 13 others
properties (23)
authorbitpopsy
permlinkhow-to-install-steem-python-on-ubuntu-18-04-and-import-your-steemit-account-using-steempy
categorypython
json_metadata{"tags":["python","steemit","blockchain","bots","steem"],"image":["https://cdn.steemitimages.com/DQmVLm8ntERF35kA2cNy2WvckVgcoWpin4aaE46p6q2nbNZ/sudo%20apt%20updaet.png","https://cdn.steemitimages.com/DQmeHcAnrqNXKCiZRmdU5yWewNVxz2NLXhpHzFnQABfrxSs/libssl.png","https://cdn.steemitimages.com/DQmeSiQHi4H7jZR8bVxzAwncZJbMk3fJHXLjRqGgxvbebBj/python%20version.png","https://cdn.steemitimages.com/DQmQzHCZx6XFESKMncZfCD6L6z25obfBeCU5G3c1Js4pmRa/steempy.png","https://cdn.steemitimages.com/DQmQEvCJM9jQxUzqWddvtR88yNcKS9rhwch1cGQqLGZNSPp/importingaccount.png"],"links":["https://steemit.com/introduceyourself/@bitpopsy/introduce-yourself","http://steem.readthedocs.io/en/latest/index.html"],"app":"steemit/0.1","format":"html"}
created2018-06-29 12:33:30
last_update2018-06-29 12:49:45
depth0
children9
last_payout2018-07-06 12:33:30
cashout_time1969-12-31 23:59:59
total_payout_value10.060 HBD
curator_payout_value2.132 HBD
pending_payout_value0.000 HBD
promoted6.000 HBD
body_length3,702
author_reputation4,143,956,656,385
root_title"How to Install Steem Python on Ubuntu 18.04 and Import Your Steemit Account using Steempy"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id62,737,341
net_rshares4,957,612,553,006
author_curate_reward""
vote details (77)
@steemitboard ·
Congratulations @bitpopsy! You have completed some achievement on Steemit and have been rewarded with new badge(s) :

[![](https://steemitimages.com/70x80/http://steemitboard.com/notifications/comments.png)](http://steemitboard.com/@bitpopsy) Award for the number of comments

<sub>_Click on the badge to view your Board of Honor._</sub>
<sub>_If you no longer want to receive notifications, reply to this comment with the word_ `STOP`</sub>


To support your work, I also upvoted your post!


**Do not miss the [last post](https://steemit.com/steemitboard/@steemitboard/steemitboard-world-cup-contest-uruguay-vs-portugal) from @steemitboard!**

---
**Participate in the [SteemitBoard World Cup Contest](https://steemit.com/steemitboard/@steemitboard/steemitboard-world-cup-contest-collect-badges-and-win-free-sbd)!**
Collect World Cup badges and win free SBD
Support the Gold Sponsors of the contest: [@good-karma](https://v2.steemconnect.com/sign/account-witness-vote?witness=good-karma&approve=1) and [@lukestokes](https://v2.steemconnect.com/sign/account-witness-vote?witness=lukestokes.mhth&approve=1)

---

> Do you like [SteemitBoard's project](https://steemit.com/@steemitboard)? Then **[Vote for its witness](https://v2.steemconnect.com/sign/account-witness-vote?witness=steemitboard&approve=1)** and **get one more award**!
👍  
properties (23)
authorsteemitboard
permlinksteemitboard-notify-bitpopsy-20180629t201617000z
categorypython
json_metadata{"image":["https://steemitboard.com/img/notify.png"]}
created2018-06-29 20:16:15
last_update2018-06-29 20:16:15
depth1
children1
last_payout2018-07-06 20:16:15
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length1,333
author_reputation38,975,615,169,260
root_title"How to Install Steem Python on Ubuntu 18.04 and Import Your Steemit Account using Steempy"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id62,784,024
net_rshares2,446,890,227
author_curate_reward""
vote details (1)
@bitpopsy ·
Interesting will have a look.
properties (22)
authorbitpopsy
permlinkre-steemitboard-steemitboard-notify-bitpopsy-20180630t072915120z
categorypython
json_metadata{"tags":["python"],"app":"steemit/0.1"}
created2018-06-30 07:29:15
last_update2018-06-30 07:29:15
depth2
children0
last_payout2018-07-07 07:29:15
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length29
author_reputation4,143,956,656,385
root_title"How to Install Steem Python on Ubuntu 18.04 and Import Your Steemit Account using Steempy"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id62,837,632
net_rshares0
@steemitboard ·
Congratulations @bitpopsy! You have completed some achievement on Steemit and have been rewarded with new badge(s) :

[![](https://steemitimages.com/70x80/http://steemitboard.com/notifications/voted.png)](http://steemitboard.com/@bitpopsy) Award for the number of upvotes received

<sub>_Click on the badge to view your Board of Honor._</sub>
<sub>_If you no longer want to receive notifications, reply to this comment with the word_ `STOP`</sub>



**Do not miss the [last post](https://steemit.com/steemitboard/@steemitboard/steemitboard-world-cup-contest-uruguay-vs-portugal) from @steemitboard!**

---
**Participate in the [SteemitBoard World Cup Contest](https://steemit.com/steemitboard/@steemitboard/steemitboard-world-cup-contest-collect-badges-and-win-free-sbd)!**
Collect World Cup badges and win free SBD
Support the Gold Sponsors of the contest: [@good-karma](https://v2.steemconnect.com/sign/account-witness-vote?witness=good-karma&approve=1) and [@lukestokes](https://v2.steemconnect.com/sign/account-witness-vote?witness=lukestokes.mhth&approve=1)

---

> Do you like [SteemitBoard's project](https://steemit.com/@steemitboard)? Then **[Vote for its witness](https://v2.steemconnect.com/sign/account-witness-vote?witness=steemitboard&approve=1)** and **get one more award**!
properties (22)
authorsteemitboard
permlinksteemitboard-notify-bitpopsy-20180630t130508000z
categorypython
json_metadata{"image":["https://steemitboard.com/img/notify.png"]}
created2018-06-30 13:05:06
last_update2018-06-30 13:05:06
depth1
children1
last_payout2018-07-07 13:05:06
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length1,289
author_reputation38,975,615,169,260
root_title"How to Install Steem Python on Ubuntu 18.04 and Import Your Steemit Account using Steempy"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id62,869,893
net_rshares0
@bitpopsy ·
Interesting will have a look.
properties (22)
authorbitpopsy
permlinkre-steemitboard-steemitboard-notify-bitpopsy-20180704t105741219z
categorypython
json_metadata{"tags":["python"],"app":"steemit/0.1"}
created2018-07-04 10:57:15
last_update2018-07-04 10:57:15
depth2
children0
last_payout2018-07-11 10:57:15
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length29
author_reputation4,143,956,656,385
root_title"How to Install Steem Python on Ubuntu 18.04 and Import Your Steemit Account using Steempy"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id63,370,497
net_rshares0
@sunita5 ·
this topic is really interesting , i want to learn more about the bots, i am waiting for next......
properties (22)
authorsunita5
permlinkre-bitpopsy-how-to-install-steem-python-on-ubuntu-18-04-and-import-your-steemit-account-using-steempy-20180704t170401781z
categorypython
json_metadata{"tags":["python"],"app":"steemit/0.1"}
created2018-07-04 17:03:57
last_update2018-07-04 17:03:57
depth1
children1
last_payout2018-07-11 17:03:57
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length99
author_reputation0
root_title"How to Install Steem Python on Ubuntu 18.04 and Import Your Steemit Account using Steempy"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id63,413,278
net_rshares0
@bitpopsy ·
Sure @sunita5  I will be posting more extended articles on this topic. Stay in touch.
properties (22)
authorbitpopsy
permlinkre-sunita5-re-bitpopsy-how-to-install-steem-python-on-ubuntu-18-04-and-import-your-steemit-account-using-steempy-20180704t180158970z
categorypython
json_metadata{"tags":["python"],"users":["sunita5"],"app":"steemit/0.1"}
created2018-07-04 18:01:30
last_update2018-07-04 18:01:30
depth2
children0
last_payout2018-07-11 18:01:30
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length85
author_reputation4,143,956,656,385
root_title"How to Install Steem Python on Ubuntu 18.04 and Import Your Steemit Account using Steempy"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id63,419,708
net_rshares0
@tcpruett ·
I will be following your post on this topic, I am really interested in learning about bots... Thnks
👍  
properties (23)
authortcpruett
permlinkre-bitpopsy-how-to-install-steem-python-on-ubuntu-18-04-and-import-your-steemit-account-using-steempy-20180629t173216865z
categorypython
json_metadata{"tags":["python"],"app":"steemit/0.1"}
created2018-06-29 17:32:18
last_update2018-06-29 17:32:18
depth1
children1
last_payout2018-07-06 17:32:18
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length99
author_reputation1,313,857,514
root_title"How to Install Steem Python on Ubuntu 18.04 and Import Your Steemit Account using Steempy"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id62,769,302
net_rshares2,179,701,064
author_curate_reward""
vote details (1)
@bitpopsy ·
Hey tcpruett, glad to know that. I will be posting more extended articles on this topic. Stay in touch.
👍  
properties (23)
authorbitpopsy
permlinkre-tcpruett-re-bitpopsy-how-to-install-steem-python-on-ubuntu-18-04-and-import-your-steemit-account-using-steempy-20180629t183454484z
categorypython
json_metadata{"tags":["python"],"app":"steemit/0.1"}
created2018-06-29 18:34:54
last_update2018-06-29 18:34:54
depth2
children0
last_payout2018-07-06 18:34:54
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length103
author_reputation4,143,956,656,385
root_title"How to Install Steem Python on Ubuntu 18.04 and Import Your Steemit Account using Steempy"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id62,775,122
net_rshares563,583,565
author_curate_reward""
vote details (1)
@test000th ·
very interesting, I will follow you
could you tell me about what bot can do?
properties (22)
authortest000th
permlinkre-bitpopsy-how-to-install-steem-python-on-ubuntu-18-04-and-import-your-steemit-account-using-steempy-20180704t132449111z
categorypython
json_metadata{"tags":["python"],"app":"steemit/0.1"}
created2018-07-04 13:24:54
last_update2018-07-04 13:24:54
depth1
children0
last_payout2018-07-11 13:24:54
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length76
author_reputation3,790,859,679
root_title"How to Install Steem Python on Ubuntu 18.04 and Import Your Steemit Account using Steempy"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id63,386,782
net_rshares0