create account

Part 2: Coding on Hive With Python - Installing Modules and Fetching Some Data from Hive by learncode

View this thread on: hive.blogpeakd.comecency.com
· @learncode · (edited)
$3.60
Part 2: Coding on Hive With Python - Installing Modules and Fetching Some Data from Hive
In Part 2 we will install beem, a Hive module for Python, and get our hands on some Hive blockchain data. Let's go!

This is the second post in the series about coding with Hive APIs and working with Hive data. If you want to run the sample code here, you will first need to install Python. A brief guide on how to do this is provided in [Part 1](https://peakd.com/programming/@learncode/part-1-coding-on-hive-with-python-setting-up).

---
## Installing Beem Module to Interact with Hive 

Now that you've installed Python, it's time to upgrade it by installing Hive modules. For now, all we need to install is ***[Beem](https://pypi.org/project/beem/)***. Beem is an awesome Python module created by @holger80. It's the "Unofficial Python Library for HIVE and STEEM". ***Beem*** also has excellent documentation here: https://beem.readthedocs.io/

Since we're using Python3 we already have everything we need to install modules. Like in part 1 where we invoked the Python interpreter for the first time, now we can call the same executable to fetch Beem. You can do this by entering the following command into your terminal: `python3 -m pip install beem`. This will download ***Beem*** and all of its dependencies (other modules that beem requires). On Windows the file name is slightly different and the command should instead be `python -m pip install beem`

The next step is to fire up the Python interpreter and execute a line: `import beem`. If all goes well and the module is successfully imported, Python will say *nothing* and  wait for the next line of input.

--- 

## Fetching Some Data from Hive

Let's keep this simple for now. Hive is a social blockchain! Just a couple lines of code are needed to ask for my follower counts. First, create a beem *Account* object. Then call the object's `get_follow_count()` function. This call will make a network request to a Hivemind API node, and return the API response to our code.

Copy-paste this into your Python interpreter terminal to try it out:
```
import beem
account = beem.account.Account('learncode')
account.get_follow_count()
```

The Python interpreter output looks like this:
```
>>> import beem
>>> account = beem.account.Account('learncode')
>>> account.get_follow_count()
{'account': 'learncode', 'following_count': 0, 'follower_count': 3}
```

The return value of the `get_follow_count()` function is a dictionary. Dictionaries are Python's key-value data type. In this case, the dictionary has three keys (and three values). The response is self-explanatory: my account 'learncode' is following 0 other accounts and is followed by 3 other accounts.

Try it yourself: replace `learncode` with your own account name in the example.

--- 

## Putting it All Together

Part 2 explained how to install Python modules using **pip**, and how to import modules using the `import` keyword. Then, we used the **beem** module to fetch some data from the Hive blockchain.

---

p.s. Thanks for reading. Please let me know if anything is unclear or incorrect. This is intended to be a living document to be improved and maintained over time.

p.p.s This post is brought to you by the [Hive.Pizza team](https://hive.pizza).
πŸ‘  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and 39 others
properties (23)
authorlearncode
permlinkpart-2-coding-on-hive-with-python-installing-modules-and-fetching-some-data-from-hive
categoryprogramming
json_metadata"{"app":"peakd/2021.05.4","format":"markdown","description":"Installing the beem Python module and making a simple request to Hive API nodes for data","tags":["programming","coding","hive","python","beem","ctp","proofofbrain","stem","broadhive","leofinance"],"users":["learncode","holger80."],"image":[]}"
created2021-06-01 05:00:39
last_update2021-06-03 18:37:36
depth0
children54
last_payout2021-06-08 05:00:39
cashout_time1969-12-31 23:59:59
total_payout_value1.808 HBD
curator_payout_value1.791 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length3,184
author_reputation682,726,195,093
root_title"Part 2: Coding on Hive With Python - Installing Modules and Fetching Some Data from Hive"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd0
post_id104,056,348
net_rshares6,253,640,533,266
author_curate_reward""
vote details (103)
@achim03 ·
$0.01
Thanks a lot for this tutorial. Unfortunately I'm already stuck lol. I have python, visual studio installed. I have imported beem but when I run the code above in visual studio it gives me a lot of errors lol. 

<code>
Error: Assert Exception:api_itr != _registered_apis.end(): Could not find API follow_api
Lost connection or internal error on node: https://api.hive.blog (1/100) 
</code>
πŸ‘  
properties (23)
authorachim03
permlinkre-learncode-qu131o
categoryprogramming
json_metadata{"tags":["programming"],"app":"peakd/2021.05.5"}
created2021-06-01 15:01:03
last_update2021-06-01 15:01:03
depth1
children8
last_payout2021-06-08 15:01:03
cashout_time1969-12-31 23:59:59
total_payout_value0.013 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length389
author_reputation260,723,409,263,008
root_title"Part 2: Coding on Hive With Python - Installing Modules and Fetching Some Data from Hive"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id104,065,574
net_rshares68,571,912,675
author_curate_reward""
vote details (1)
@torrey.blog ·
Yes, I saw the same error. The API node beem tried to connect to doesn’t support the follow_api. Beem will retry other nodes until it finds one that works.

To avoid hitting this error, you can specify a list of which API nodes Beem should use.
properties (22)
authortorrey.blog
permlinkre-achim03-qu13i7
categoryprogramming
json_metadata{"tags":["programming"],"app":"peakd/2021.05.5"}
created2021-06-01 15:10:57
last_update2021-06-01 15:10:57
depth2
children7
last_payout2021-06-08 15:10: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_length244
author_reputation6,751,817,739,213
root_title"Part 2: Coding on Hive With Python - Installing Modules and Fetching Some Data from Hive"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id104,065,791
net_rshares0
@achim03 · (edited)
Thanks now I have another error lol 🀣. I really struggle with python :-)
properties (22)
authorachim03
permlinkre-torreyblog-qu1dq1
categoryprogramming
json_metadata{"tags":["programming"],"app":"peakd/2021.05.5"}
created2021-06-01 18:51:39
last_update2021-06-01 18:52:12
depth3
children4
last_payout2021-06-08 18:51:39
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_length72
author_reputation260,723,409,263,008
root_title"Part 2: Coding on Hive With Python - Installing Modules and Fetching Some Data from Hive"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id104,069,658
net_rshares0
@nathen007.stem ·
Sorry, I had the same problem. How do we do that please?
πŸ‘  
properties (23)
authornathen007.stem
permlinkqu15gs
categoryprogramming
json_metadata{"tags":["stem"],"app":"stemgeeks/0.1","canonical_url":"https://stemgeeks.net/@nathen007.stem/qu15gs"}
created2021-06-01 15:53:18
last_update2021-06-01 15:53:18
depth3
children1
last_payout2021-06-08 15:53: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_length56
author_reputation166,075,596,964
root_title"Part 2: Coding on Hive With Python - Installing Modules and Fetching Some Data from Hive"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id104,066,719
net_rshares1,254,097,046
author_curate_reward""
vote details (1)
@chasmic-cosm ·
That's a great tutorial! Very clearly presented, and I like how you've used the `get_follow_count()` function to explain python dictionaries. Keep up the good work!

Posted Using [LeoFinance <sup>Beta</sup>](https://leofinance.io/@chasmic-cosm/re-learncode-5osdfn)
properties (22)
authorchasmic-cosm
permlinkre-learncode-5osdfn
categoryprogramming
json_metadata{"app":"leofinance/0.2","format":"markdown","tags":["programming","leofinance","hive-167922"],"canonical_url":"https://leofinance.io/@chasmic-cosm/re-learncode-5osdfn"}
created2021-06-01 13:13:24
last_update2021-06-01 13:13:24
depth1
children1
last_payout2021-06-08 13:13:24
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_length264
author_reputation4,159,775,155,640
root_title"Part 2: Coding on Hive With Python - Installing Modules and Fetching Some Data from Hive"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id104,063,618
net_rshares0
@learncode ·
Thanks for reading and thanks for your support!
πŸ‘  
properties (23)
authorlearncode
permlinkre-chasmic-cosm-qu15un
categoryprogramming
json_metadata{"tags":["programming"],"app":"peakd/2021.05.5"}
created2021-06-01 16:01:36
last_update2021-06-01 16:01:36
depth2
children0
last_payout2021-06-08 16:01:36
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_length47
author_reputation682,726,195,093
root_title"Part 2: Coding on Hive With Python - Installing Modules and Fetching Some Data from Hive"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id104,066,861
net_rshares23,106,756,598
author_curate_reward""
vote details (1)
@cryptothesis ·
Thanks for sharing. 

!PIZZA
properties (22)
authorcryptothesis
permlinkre-learncode-2022108t151645713z
categoryprogramming
json_metadata{"tags":["programming","coding","hive","python","beem","ctp","proofofbrain","stem","broadhive","leofinance"],"app":"ecency/3.0.34-mobile","format":"markdown+html"}
created2022-10-08 07:16:45
last_update2022-10-08 07:16:45
depth1
children0
last_payout2022-10-15 07:16:45
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_length28
author_reputation86,309,510,216,180
root_title"Part 2: Coding on Hive With Python - Installing Modules and Fetching Some Data from Hive"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id117,289,385
net_rshares0
@dwinblood ·
I'll need to find out what beem does so I can either find a C# equivalent or make one.
properties (22)
authordwinblood
permlinkre-learncode-qwf2wk
categoryprogramming
json_metadata{"tags":["programming"],"app":"peakd/2021.07.2"}
created2021-07-18 01:31:33
last_update2021-07-18 01:31:33
depth1
children1
last_payout2021-07-25 01:31:33
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_length86
author_reputation381,811,629,392,797
root_title"Part 2: Coding on Hive With Python - Installing Modules and Fetching Some Data from Hive"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id104,983,280
net_rshares0
@learncode ·
It’s just a convenient wrapper for Hive RPC API calls.
properties (22)
authorlearncode
permlinkre-dwinblood-2021717t184311209z
categoryprogramming
json_metadata{"tags":["programming"],"app":"ecency/3.0.18-mobile","format":"markdown+html"}
created2021-07-18 01:43:12
last_update2021-07-18 01:43:12
depth2
children0
last_payout2021-07-25 01:43:12
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_length54
author_reputation682,726,195,093
root_title"Part 2: Coding on Hive With Python - Installing Modules and Fetching Some Data from Hive"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id104,983,380
net_rshares0
@ecency ·
**Yay!** πŸ€—<br>Your content has been **boosted with Ecency Points**, by @torrey.blog. <br>Use Ecency daily to boost your growth on platform! <br><br><b>Support Ecency</b><br>[Vote for Proposal](https://hivesigner.com/sign/update-proposal-votes?proposal_ids=%5B141%5D&approve=true)<br>[Delegate HP and earn more](https://ecency.com/hive-125125/@ecency/daily-100-curation-rewards)
properties (22)
authorecency
permlinkre-202162t22947682z
categoryprogramming
json_metadata{"tags":["ecency"],"app":"ecency/3.0.16-welcome","format":"markdown+html"}
created2021-06-02 02:29:48
last_update2021-06-02 02:29:48
depth1
children0
last_payout2021-06-09 02:29:48
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_length377
author_reputation549,971,524,037,747
root_title"Part 2: Coding on Hive With Python - Installing Modules and Fetching Some Data from Hive"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id104,076,474
net_rshares0
@fireguardian ·
Step 2: check!

``` 
>>> account = beem.account.Account('fireguardian')
>>> account.get_follow_count()
{'account': 'fireguardian', 'follower_count': 629, 'following_count': 66}
properties (22)
authorfireguardian
permlinkre-learncode-qxjn2p
categoryprogramming
json_metadata{"tags":["programming"],"app":"peakd/2021.07.5"}
created2021-08-08 23:11:18
last_update2021-08-08 23:11:18
depth1
children0
last_payout2021-08-15 23:11: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_length177
author_reputation12,625,048,693,836
root_title"Part 2: Coding on Hive With Python - Installing Modules and Fetching Some Data from Hive"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id105,410,013
net_rshares0
@gillianpearce ·
Is the command prompt thing the "terminal"?

When I paste "python3 -m pip install beem" I get the same result as I did in Lesson 1.

Am I supposed to put cmd in front of "python3 -m pip install beem".

It doesn't work either way. &#128546;



---

<center><sub>Posted via [proofofbrain.io](https://www.proofofbrain.io/@gillianpearce/qu4sp6)</sub></center>
properties (22)
authorgillianpearce
permlinkqu4sp6
categoryprogramming
json_metadata{"tags":["proofofbrain"],"app":"proofofbrain/0.1","canonical_url":"https://www.proofofbrain.io/@gillianpearce/qu4sp6"}
created2021-06-03 15:07:57
last_update2021-06-03 15:07:57
depth1
children11
last_payout2021-06-10 15:07: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_length355
author_reputation51,237,062,991,594
root_title"Part 2: Coding on Hive With Python - Installing Modules and Fetching Some Data from Hive"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id104,106,872
net_rshares0
@learncode ·
On Windows, the file naming is slightly different.

Please instead try `python -m pip install beem`.
πŸ‘  
properties (23)
authorlearncode
permlinkre-gillianpearce-202163t5368244z
categoryprogramming
json_metadata{"tags":["proofofbrain"],"app":"ecency/3.0.18-mobile","format":"markdown+html"}
created2021-06-03 15:36:09
last_update2021-06-03 15:36:09
depth2
children10
last_payout2021-06-10 15:36:09
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_length100
author_reputation682,726,195,093
root_title"Part 2: Coding on Hive With Python - Installing Modules and Fetching Some Data from Hive"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id104,107,313
net_rshares732,609,292
author_curate_reward""
vote details (1)
@gillianpearce ·
Yeah. I tried that too and got the same error as in Lesson 1, namely . . .

![image.png](https://images.hive.blog/DQmaCQarAhT734bwKe7E3JwiCrSjFi5uBPztT5Wk5Hqc8AK/image.png)

Posted Using [LeoFinance <sup>Beta</sup>](https://leofinance.io/@gillianpearce/re-learncode-t2nlp)
πŸ‘  
properties (23)
authorgillianpearce
permlinkre-learncode-t2nlp
categoryprogramming
json_metadata{"app":"leofinance/0.2","format":"markdown","tags":["programming","leofinance","hive-167922"],"canonical_url":"https://leofinance.io/@gillianpearce/re-learncode-t2nlp","image":["https://images.hive.blog/DQmaCQarAhT734bwKe7E3JwiCrSjFi5uBPztT5Wk5Hqc8AK/image.png"]}
created2021-06-03 15:48:09
last_update2021-06-03 15:48:09
depth3
children9
last_payout2021-06-10 15:48:09
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_length272
author_reputation51,237,062,991,594
root_title"Part 2: Coding on Hive With Python - Installing Modules and Fetching Some Data from Hive"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id104,107,524
net_rshares497,616,116
author_curate_reward""
vote details (1)
@gillianpearce ·
I've tried to learn Python a few times without success. I'm hoping this time I'll be able to learn enough with your tutorials to get some data from the blockchain. Having help with a specific application should be easier. Here's hoping . . .

Posted Using [LeoFinance <sup>Beta</sup>](https://leofinance.io/@gillianpearce/re-learncode-2tjgd3)
properties (22)
authorgillianpearce
permlinkre-learncode-2tjgd3
categoryprogramming
json_metadata{"app":"leofinance/0.2","format":"markdown","tags":["programming","leofinance","hive-167922"],"canonical_url":"https://leofinance.io/@gillianpearce/re-learncode-2tjgd3"}
created2021-06-01 16:19:57
last_update2021-06-01 16:19:57
depth1
children5
last_payout2021-06-08 16:19: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_length342
author_reputation51,237,062,991,594
root_title"Part 2: Coding on Hive With Python - Installing Modules and Fetching Some Data from Hive"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id104,067,146
net_rshares0
@learncode ·
Hi Gillian, glad you found me.

If you don’t mind my asking, where did you get hung up before?

I will try to cover those concepts here to cover the gaps.
πŸ‘  
properties (23)
authorlearncode
permlinkre-gillianpearce-202161t63455655z
categoryprogramming
json_metadata{"tags":["programming","leofinance","hive-167922"],"app":"ecency/3.0.18-mobile","format":"markdown+html"}
created2021-06-01 16:34:57
last_update2021-06-01 16:34:57
depth2
children4
last_payout2021-06-08 16:34: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_length154
author_reputation682,726,195,093
root_title"Part 2: Coding on Hive With Python - Installing Modules and Fetching Some Data from Hive"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id104,067,384
net_rshares1,350,138,913
author_curate_reward""
vote details (1)
@gillianpearce ·
>where did you get hung up before

I can't remember the specifics. I just found it hard learning stuff when it wasn't applied to a problem that I actually wanted to solve.

Primarily I want to be able to download my data with dates and amounts etc of the various tokens in a csv friendly format to make filing taxes easier.

I'm assuming that's possible with python but I could be wrong. &#128522;

Posted Using [LeoFinance <sup>Beta</sup>](https://leofinance.io/@gillianpearce/re-learncode-6lkjve)
properties (22)
authorgillianpearce
permlinkre-learncode-6lkjve
categoryprogramming
json_metadata{"app":"leofinance/0.2","format":"markdown","tags":["programming","leofinance","hive-167922"],"canonical_url":"https://leofinance.io/@gillianpearce/re-learncode-6lkjve"}
created2021-06-02 09:20:45
last_update2021-06-02 09:20:45
depth3
children3
last_payout2021-06-09 09:20:45
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_length498
author_reputation51,237,062,991,594
root_title"Part 2: Coding on Hive With Python - Installing Modules and Fetching Some Data from Hive"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id104,080,816
net_rshares0
@hivebuzz ·
Congratulations @learncode! You have completed the following achievement on the Hive blockchain and have been rewarded with new badge(s) :

<table><tr><td><img src="https://images.hive.blog/60x70/http://hivebuzz.me/@learncode/upvoted.png?202106010901"></td><td>You received more than 50 upvotes.<br>Your next target is to reach 100 upvotes.</td></tr>
</table>

<sub>_You can view your badges on [your board](https://hivebuzz.me/@learncode) and compare yourself to others in the [Ranking](https://hivebuzz.me/ranking)_</sub>
<sub>_If you no longer want to receive notifications, reply to this comment with the word_ `STOP`</sub>



**Check out the last post from @hivebuzz:**
<table><tr><td><a href="/hivebuzz/@hivebuzz/pud-202106"><img src="https://images.hive.blog/64x128/https://i.imgur.com/805FIIt.jpg"></a></td><td><a href="/hivebuzz/@hivebuzz/pud-202106">Hive Power Up Day - June 1st 2021 - Hive Power Delegation</a></td></tr></table>

###### Support the HiveBuzz project. [Vote](https://hivesigner.com/sign/update_proposal_votes?proposal_ids=%5B%22109%22%5D&approve=true) for [our proposal](https://peakd.com/me/proposals/147)!
properties (22)
authorhivebuzz
permlinkhivebuzz-notify-learncode-20210601t091247000z
categoryprogramming
json_metadata{"image":["http://hivebuzz.me/notify.t6.png"]}
created2021-06-01 09:12:45
last_update2021-06-01 09:12:45
depth1
children0
last_payout2021-06-08 09:12:45
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,133
author_reputation367,965,646,463,563
root_title"Part 2: Coding on Hive With Python - Installing Modules and Fetching Some Data from Hive"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id104,060,239
net_rshares0
@mindblaster ·
Thanks for your write up. I'm running into issues getting beem installed, hope you can help. This is on my Windows 10 system. Thanks.

*      crypto_aes.c
      scrypt-1.2.1/libcperciva/crypto/crypto_aes.c(6): fatal error C1083: Cannot open include file: 'openssl/aes.h': No such file or directory
      error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\x86_amd64\\cl.exe' failed with exit code 2
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for scrypt
Failed to build scrypt
ERROR: Could not build wheels for scrypt, which is required to install pyproject.toml-based projects*

properties (22)
authormindblaster
permlinkre-learncode-r9a514
categoryprogramming
json_metadata{"tags":["programming"],"app":"peakd/2022.03.7"}
created2022-03-25 02:46:24
last_update2022-03-25 02:46:24
depth1
children2
last_payout2022-04-01 02:46:24
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_length705
author_reputation1,951,411,193
root_title"Part 2: Coding on Hive With Python - Installing Modules and Fetching Some Data from Hive"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id111,665,876
net_rshares0
@quekery ·
$0.04
Do you find a solution?

I have the same problem 
πŸ‘  ,
properties (23)
authorquekery
permlinkre-mindblaster-rdxulm
categoryprogramming
json_metadata{"tags":["programming"],"app":"peakd/2022.05.9"}
created2022-06-23 16:17:45
last_update2022-06-23 16:17:45
depth2
children0
last_payout2022-06-30 16:17:45
cashout_time1969-12-31 23:59:59
total_payout_value0.020 HBD
curator_payout_value0.021 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length49
author_reputation69,685,398,785,959
root_title"Part 2: Coding on Hive With Python - Installing Modules and Fetching Some Data from Hive"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id114,272,371
net_rshares57,655,630,225
author_curate_reward""
vote details (2)
@quekery ·
Find one!

Just install [openSSL](https://slproweb.com/products/Win32OpenSSL.html)
properties (22)
authorquekery
permlinkre-mindblaster-rdy17c
categoryprogramming
json_metadata{"tags":["programming"],"app":"peakd/2022.05.9"}
created2022-06-23 18:40:24
last_update2022-06-23 18:40:24
depth2
children0
last_payout2022-06-30 18:40:24
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_length82
author_reputation69,685,398,785,959
root_title"Part 2: Coding on Hive With Python - Installing Modules and Fetching Some Data from Hive"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id114,275,862
net_rshares0
@mytechtrail ·
If you post from stemgeeks.net you will earn extra STEM tokens.
properties (22)
authormytechtrail
permlinkre-learncode-qub9p0
categoryprogramming
json_metadata{"tags":["programming"],"app":"peakd/2021.05.5"}
created2021-06-07 03:00:36
last_update2021-06-07 03:00:36
depth1
children1
last_payout2021-06-14 03:00:36
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_length64
author_reputation18,957,346,112,072
root_title"Part 2: Coding on Hive With Python - Installing Modules and Fetching Some Data from Hive"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id104,178,082
net_rshares0
@learncode ·
Thanks for the tip!
properties (22)
authorlearncode
permlinkre-mytechtrail-202166t20517881z
categoryprogramming
json_metadata{"tags":["programming"],"app":"ecency/3.0.18-mobile","format":"markdown+html"}
created2021-06-07 03:05:18
last_update2021-06-07 03:05:18
depth2
children0
last_payout2021-06-14 03:05: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_length19
author_reputation682,726,195,093
root_title"Part 2: Coding on Hive With Python - Installing Modules and Fetching Some Data from Hive"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id104,178,316
net_rshares0
@pizzabot ·
<center>PIZZA!


PIZZA Holders sent <strong>$PIZZA</strong> tips in this post's comments:
@cryptothesis<sub>(2/10)</sub> tipped @learncode (x1)


<sub>Join us in <a href="https://discord.gg/hivepizza">Discord</a>!</sub></center>
properties (22)
authorpizzabot
permlinkre-part-2-coding-on-hive-with-python-installing-modules-and-fetching-some-data-from-hive-20221008t071754z
categoryprogramming
json_metadata"{"app": "beem/0.24.19"}"
created2022-10-08 07:17:54
last_update2022-10-08 07:17:54
depth1
children0
last_payout2022-10-15 07:17: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_length228
author_reputation6,161,089,492,455
root_title"Part 2: Coding on Hive With Python - Installing Modules and Fetching Some Data from Hive"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id117,289,400
net_rshares0
@princekham ·
How can I fetch other data like  mana of an account?
properties (22)
authorprincekham
permlinkre-learncode-2023729t1805884z
categoryprogramming
json_metadata{"tags":["programming","coding","hive","python","beem","ctp","proofofbrain","stem","broadhive","leofinance"],"app":"ecency/3.0.35-vision","format":"markdown+html"}
created2023-07-29 11:30:57
last_update2023-07-29 11:30:57
depth1
children0
last_payout2023-08-05 11:30: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_length52
author_reputation88,012,342,837,339
root_title"Part 2: Coding on Hive With Python - Installing Modules and Fetching Some Data from Hive"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id125,743,437
net_rshares0
@stickupboys ·
$0.04
So in the film you are making is it like giant snakes vs bees?
πŸ‘  
properties (23)
authorstickupboys
permlinkre-learncode-qu1qs5
categoryprogramming
json_metadata{"tags":["programming"],"app":"peakd/2021.05.5"}
created2021-06-01 23:33:39
last_update2021-06-01 23:33:39
depth1
children5
last_payout2021-06-08 23:33:39
cashout_time1969-12-31 23:59:59
total_payout_value0.018 HBD
curator_payout_value0.018 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length62
author_reputation409,258,469,233,840
root_title"Part 2: Coding on Hive With Python - Installing Modules and Fetching Some Data from Hive"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id104,074,008
net_rshares92,933,723,732
author_curate_reward""
vote details (1)
@learncode ·
You lost me mate!
πŸ‘  
properties (23)
authorlearncode
permlinkre-stickupboys-202161t133529828z
categoryprogramming
json_metadata{"tags":["programming"],"app":"ecency/3.0.18-mobile","format":"markdown+html"}
created2021-06-01 23:35:30
last_update2021-06-01 23:35:30
depth2
children4
last_payout2021-06-08 23:35: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_length17
author_reputation682,726,195,093
root_title"Part 2: Coding on Hive With Python - Installing Modules and Fetching Some Data from Hive"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id104,074,042
net_rshares17,455,518,618
author_curate_reward""
vote details (1)
@stickupboys ·
You lost me with the title....lol bees...snakes....animals....no? I don't know any coding jokes....
![Mind Blown GIF-downsized.gif](https://files.peakd.com/file/peakd-hive/stickupboys/23wCJN7hSxzAsWrhfYM5kY5sVZQqMTjAHVs9FXsCY8GeZjbmqvqyPiBnkMTKYkSLQ6enh.gif)
properties (22)
authorstickupboys
permlinkre-learncode-qu1r5j
categoryprogramming
json_metadata{"tags":["programming"],"app":"peakd/2021.05.5"}
created2021-06-01 23:41:42
last_update2021-06-01 23:41:42
depth3
children3
last_payout2021-06-08 23:41:42
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_length259
author_reputation409,258,469,233,840
root_title"Part 2: Coding on Hive With Python - Installing Modules and Fetching Some Data from Hive"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id104,074,134
net_rshares0
@yintercept ·
$0.07
That documentation link was extremely nice.

I had tried to learn beem without any documentation in the past.

I figured out how to query information, but I never figured out how to execute transactions.

!wine
πŸ‘  , ,
properties (23)
authoryintercept
permlinkqu1djo
categoryprogramming
json_metadata{"app":"hiveblog/0.1"}
created2021-06-01 18:47:51
last_update2021-06-01 18:47:51
depth1
children1
last_payout2021-06-08 18:47:51
cashout_time1969-12-31 23:59:59
total_payout_value0.032 HBD
curator_payout_value0.033 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length210
author_reputation23,962,343,431,134
root_title"Part 2: Coding on Hive With Python - Installing Modules and Fetching Some Data from Hive"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id104,069,584
net_rshares164,302,627,015
author_curate_reward""
vote details (3)
@learncode ·
$0.06
Happy to help! Since this example did some reading data from Hive, I’m thinking the next one will write some data to Hive. So you can see how to set up the keys to make transactions.
πŸ‘  
properties (23)
authorlearncode
permlinkre-yintercept-202161t13649319z
categoryprogramming
json_metadata{"tags":["ecency"],"app":"ecency/3.0.18-mobile","format":"markdown+html"}
created2021-06-01 23:06:48
last_update2021-06-01 23:06:48
depth2
children0
last_payout2021-06-08 23:06:48
cashout_time1969-12-31 23:59:59
total_payout_value0.030 HBD
curator_payout_value0.030 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length182
author_reputation682,726,195,093
root_title"Part 2: Coding on Hive With Python - Installing Modules and Fetching Some Data from Hive"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id104,073,611
net_rshares151,485,910,643
author_curate_reward""
vote details (1)
@zorg67 ·
After installing Beem I saw this message on the terminal:

>WARNING: The script beempy is installed in '/home/user/.local/bin' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location

Do you know what this means? I replicated the example that you provided with no issues but I don't know what that warning means.
properties (22)
authorzorg67
permlinkre-learncode-qu1i5k
categoryprogramming
json_metadata{"tags":["programming"],"app":"peakd/2021.05.5"}
created2021-06-01 20:27:39
last_update2021-06-01 20:27:39
depth1
children3
last_payout2021-06-08 20:27:39
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_length393
author_reputation384,908,390,168
root_title"Part 2: Coding on Hive With Python - Installing Modules and Fetching Some Data from Hive"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id104,071,245
net_rshares0
@learncode ·
Beem also has a command line executable you can call directly instead of via Python script. The warning is telling you if you try to invoke `beempy` from your terminal, the command won’t be found. You will need to append the path to your PATH environment variable, or use the full path.
properties (22)
authorlearncode
permlinkre-zorg67-202161t13926258z
categoryprogramming
json_metadata{"tags":["programming"],"app":"ecency/3.0.18-mobile","format":"markdown+html"}
created2021-06-01 23:09:27
last_update2021-06-01 23:09:27
depth2
children2
last_payout2021-06-08 23:09:27
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_length286
author_reputation682,726,195,093
root_title"Part 2: Coding on Hive With Python - Installing Modules and Fetching Some Data from Hive"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id104,073,646
net_rshares0
@zorg67 ·
Thank you for the response, I had already figured it out and appended the path to the PATH environment. I learned something about linux in the meantime :)
πŸ‘  
properties (23)
authorzorg67
permlinkre-learncode-quak0h
categoryprogramming
json_metadata{"tags":["programming"],"app":"peakd/2021.05.5"}
created2021-06-06 17:45:57
last_update2021-06-06 17:45:57
depth3
children1
last_payout2021-06-13 17:45: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_length154
author_reputation384,908,390,168
root_title"Part 2: Coding on Hive With Python - Installing Modules and Fetching Some Data from Hive"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id104,170,774
net_rshares613,620,161
author_curate_reward""
vote details (1)