active post/comment apps in the past hour

in #steem4 years ago (edited)

My vote-bot began to pick random new posts 2 days ago. It's interesting to see many " appics " in upvoted titles. I am curious about how many apps/clients are active today.

36 active apps produced 294 posts and 271 comments in the past hour. Steemit, dlike, appics, steempeak, wherein are the top 5 in post creation. Steemit, appics, steempeak, steemcn and comments-scot are the top 3 in comment creation.

posts: 294
{'steemit/0.2': 161, 'dlike/3': 33, 'appics': 32, 'steempeak/2020.06.1': 12, 'wherein/1.0': 10, 'busy/2.5.6': 9, 'unknown': 8, 'actifit/0.7.0': 6, 'steemcn/0.1': 4, 'actifit/0.6.2': 3, 'steemcoinpan/0.1': 3, 'steemzzang/0.1': 2, 'actifit/0.4.1': 2, 'VIMM': 1, 'postleague': 1, 'drugwars': 1, 'beem/0.23.9': 1, 'tasteem/1.0.0': 1, 'dtube/0.9': 1, 'steemjs-test!': 1, 'esteem/1.6.0': 1, 'travelfeed/3.5.0': 1}
comments: 271
{'steemit/0.2': 78, 'unknown': 40, 'appics': 37, 'steempeak/2020.06.1': 27, 'steemcn/0.1': 18, 'comments-scot/1.1': 15, 'xlisto': 12, 'sagoda/0.1': 9, 'rewarding/0.1.5': 5, 'triple a/0.1': 5, 'steemcoinpan/0.1': 4, 'steemhunt/1.0.0': 4, 'beem/0.22.13': 3, 'wdice/1.5': 3, 'actifit/0.4.1': 2, 'beem/0.22.8': 2, 'steemjs/comment': 2, 'drotto/0.0.5pre2': 1, 'steemjs/examples': 1, 'beem/0.21.1': 1, 'tasteem/1.0.0': 1, 'beem/0.24.2': 1}
all: 565
{'steemit/0.2': 239, 'appics': 69, 'unknown': 48, 'steempeak/2020.06.1': 39, 'dlike/3': 33, 'steemcn/0.1': 22, 'comments-scot/1.1': 15, 'xlisto': 12, 'wherein/1.0': 10, 'busy/2.5.6': 9, 'sagoda/0.1': 9, 'steemcoinpan/0.1': 7, 'actifit/0.7.0': 6, 'rewarding/0.1.5': 5, 'triple a/0.1': 5, 'actifit/0.4.1': 4, 'steemhunt/1.0.0': 4, 'actifit/0.6.2': 3, 'beem/0.22.13': 3, 'wdice/1.5': 3, 'tasteem/1.0.0': 2, 'steemzzang/0.1': 2, 'beem/0.22.8': 2, 'steemjs/comment': 2, 'VIMM': 1, 'postleague': 1, 'drugwars': 1, 'beem/0.23.9': 1, 'dtube/0.9': 1, 'steemjs-test!': 1, 'esteem/1.6.0': 1, 'travelfeed/3.5.0': 1, 'drotto/0.0.5pre2': 1, 'steemjs/examples': 1, 'beem/0.21.1': 1, 'beem/0.24.2': 1}

here is the script powered by Beempy/Python:

import json
import copy
from beem import Steem
from beem.account import Account
from beem.block import Block
from beem.blockchain import Blockchain
#node_list = steem.get_default_nodes()
post_clients = {}
comment_clients = {}
steem = Steem('https://cn.steems.top',appbase=False)

steem.set_default_nodes(['https://cn.steems.top','https://api.steemit.com','https://api.justyy.com'])

b = Blockchain(blockchain_instance=steem)
last_block_number  = b.get_current_block_num()
print(last_block_number)



for bn in range(last_block_number-20*60,last_block_number+1): #20 blocks/min*60 minutes*24 hour
    print(f"processing block: {bn}")
    block = Block(bn, only_virtual_ops=False, blockchain_instance=steem)
    for op in block.json_operations:
        if "comment_operation" == op["type"]:
            app = ''
            try:
                jsonDict = json.loads(op["value"]['json_metadata']) #metadata is string not dict
                app = jsonDict["app"]
            except:
                app ="unknown"
            
            if '' == op["value"]['parent_author']:

                post_clients[app] = post_clients.get(app,0) +1
            else:
                comment_clients[app] = comment_clients.get(app,0) +1

def sort_dict(dict):
    sorted_dict = {}
    for a,b in sorted(dict.items(),key=lambda d: d[1],reverse=True):
        sorted_dict[a]=b
    return sorted_dict

all_clients = copy.deepcopy(post_clients)
for k,v in comment_clients.items():
    all_clients[k] = all_clients.get(k,0) + comment_clients[k]

print (f"**{len(all_clients)}** active apps")
print(f"posts: **{sum(post_clients.values())}**")
print(sort_dict( post_clients))
print(f"comments: **{sum(comment_clients.values())}**")
print(sort_dict(comment_clients))
print(f"all: **{sum(all_clients.values())}**")
print(sort_dict(all_clients))

exit()

It will take hours to get the past 24-hour stats without optimization. You may have a try by changing last_block_number-20*60 to last_block_number-20*60*24

Sort:  

Is this allowed in steemit ?

I got one I think lol

you missing games like drugwars...

Coin Marketplace

STEEM 0.31
TRX 0.11
JST 0.034
BTC 65139.82
ETH 3206.69
USDT 1.00
SBD 4.16