#1 LET US FIND OUT HOW MANY REGISTERED USER ACCOUNTS ARE ON STEEMIT.
run python 3 on your command prompt or terminal
write the following code
>>> from steem import Steem # import the class Steem from steem libraries
>>> b = Steem() # create an instance of the class Steem
>>> b.get_account_count() # call the method get_account_count()
253645
There are 253645 registered accounts on steemit
# 2 FIND THE STEEM DOLLAR BALANCE FOR ANY USER ON STEEMIT
>>> from steem import Steem # import the class Steem from steem libraries
>>> b = Steem() # create an instance of the class Steem
>>> b. get_account('samuelgichu')['sbd_balance']
'3.875 SBD'
NOTE that 'brianadams' in this case represents the steemit username to whom i want to find the SBD balance.
# 3 FIND THE TOTAL NUMBER OF STEEM WITNESS THAT EXIST ON STEEMIT
>>> from steem import Steem # import the class Steem from steem libraries >>> b = Steem() # create an instance of the class Steem
>>> b.get_witness_count()
14543
There are 14543 witnesses on steemit.
HOPE YOU LEARNED SOMETHING AND IF SO SHARE THE KNOWLEDGE WITH YOUR FRIENDS
Cheers guys!!