You are viewing a single comment's thread from:

RE: The Best Time to Post on Steemit

in #steemit8 years ago (edited)

I am so sorry guys, there was a bug in my code!

The problem was, that when a post is edited, it appears again on the blockchain, and so was counted again. So, some posts were incorrectly getting counted multiple times.

Here is the corrected graph and the corrected code:

from piston.steem import Steem
from steemapi.steemnoderpc import SteemNodeRPC
from collections import Counter
from datetime import datetime

counter = Counter()
postcounter = Counter()

start_block = 3145790 # 2016-07-12

rpc = SteemNodeRPC("ws://localhost:8090")
steem = Steem(node="ws://localhost:8090", nobroadcast=True)

counted = set()

for c in rpc.stream("comment", start=start_block):
    if c["parent_author"]:
        continue # only interested in posts, not comments

    identifier = "@" + c["author"] + "/" + c["permlink"]

    if identifier in counted:
        continue

    counted.add(identifier)

    try:
        post = steem.get_content(identifier)
    except:
        continue

    dt = datetime.strptime(post.created, "%Y-%m-%dT%H:%M:%S")

    print("\n" + str(dt))

    payout = float(post.total_payout_value.split(" ")[0]) + float(post.pending_payout_value.split(" ")[0])

    counter[dt.hour] = counter[dt.hour] + payout
    postcounter[dt.hour] = postcounter[dt.hour] + 1

    for i in range(24):
        if postcounter[i]:
            print(str(counter[i] / float(postcounter[i])))
        else:
            print("0")

This new graph is a little all over the place, but there are still some tendencies.

But I guess that timing doesn't matter that much after all, as posts can remain on the frontpage for a whole day or longer.

I did warn you that I could be wrong! Let's hope I'm right this time :)

Sort:  

Thanks for updating! Your comment needs to be upvoted so people can see the mistake

Is graph in UTC?

Yes it is.

Translated to American time zones, that sounds like the best time to post would be 9am Mountain and 11am Eastern. The next few hours after that seem "out of the woods," with very few low-yield time slots.

Thanks for the awesome statistical approach! Now that some time has passed since this article, do you have anymore onsite on time to post? I finished a post but I’m hokd My off in posting now lol. So new to Steemit :)

Coin Marketplace

STEEM 0.19
TRX 0.14
JST 0.029
BTC 65771.81
ETH 3174.77
USDT 1.00
SBD 2.61