Simple Steem-Python Scripts

in #steem8 years ago

I have recently gone over some of @emrebeyler ´s tutorials for using the Steem-Python library to interact with the Steem Blockchain and I wanted to share a simple script for searching the reputation and voting power of an account.

First, you would need to install Steem-Python, I recommend using @emrebeyler fork as it provides many fixes and its kept updated, you can find it here: https://github.com/emre/steem-python-dshot

[quick note: I used pip3 for it to install]


Once you have installed the library, all you have to is create a python file:

sudo nano accountinfo.py


And write this piece of code inside it:

from steem.account import Account

account = input("name of your account: ")

print ("your reputation is ", Account(account).rep)
print("your voting power is ", Account(account).current_voting_power())

Close the editor with ctr + x and run the code typing:

python3 accountinfo.py



The result should look something like this:

Captura de pantalla 2018-03-09 a la(s) 17.56.19.png

Give it a try!

Sort:  

I will try this, I pray it works

Should work!

Captura de pantalla 2018-03-09 a la(s) 18.10.53.png

OMG..... This is superb

Very good FOLLOW @ajaa23 yes

If i may ask, whats the essence of doing this?

This magical code is very useful thanks for this kind information I will remember you @chitty

muy buena esta imformacion te felicito.
podrias ayudarme, no entiendo mucho como es.

Coin Marketplace

STEEM 0.04
TRX 0.32
JST 0.082
BTC 60783.65
ETH 1557.84
USDT 1.00
SBD 0.47