DEV Community

Cover image for How I Found the Best Posting Times on dev.to With NodeJS(+ Usable Code)

How I Found the Best Posting Times on dev.to With NodeJS(+ Usable Code)

Code_Jedi on March 03, 2022

One thing that bothers a lot of creators(including me) is, well, what if I post at the wrong time? What if I post and my post will get barely any t...
Collapse
 
grahamthedev profile image
GrahamTheDev • Edited

Or you could...if you were really silly...just:

  • download 250k+ worth of live articles on dev.to using the API over the space of about 15 days so as not to get rate limited,
  • store them all in a database (well over 10GB…and that is just text not images!)
  • and then query that database based on likes (per post) vs time posted, removing the top 5% and bottom 5% to make it slightly more accurate and output it all to a simple table.

I would imagine the results would look something like this if anyone was silly enough to attempt to do it (third table):

inhu.co/dev_to/analyse/timeofday.php

But nobody would be silly enough to do that now would they? 😉

Being serious for a second, I didn't think to break it down by tag...might have to look into that if I ever get around to finishing that project as that is a great idea!

Great post, as you can probably tell I find stuff like this really interesting! ❤🦄

Collapse
 
renanfranca profile image
Renan Franca

I am about to ask you on another article discussion (that you share the tables link) how did you get the final result 🤣

Thanks!

Collapse
 
dmk1111 profile image
dmk1111

Could you please share which time zone do you use in this table? Thanks!

Collapse
 
grahamthedev profile image
GrahamTheDev

It is GMT, hope that helps!

Collapse
 
zippytyro profile image
Shashwat Verma

This is a better approach I think, the person didn't knew about the API

Collapse
 
grahamthedev profile image
GrahamTheDev

Their approach was far more efficient though, I just brute forced it!

The DEV API is not well publicised either to be fair, so it is easy to miss.

Collapse
 
techman09 profile image
TechMan09

Love it!

Collapse
 
z2lai profile image
z2lai

What on earth do these numbers and colors mean? Did I miss the legend?

Collapse
 
grahamthedev profile image
GrahamTheDev • Edited

No it is for personal use so it is not user friendly!, I just happened to share it in case it was useful for someone. The numbers are reactions / article released at a given time as an average. The colours are just a heat map, dark green is best (and yes the colours are awful!) 🤣

Collapse
 
thumbone profile image
Bernd Wechner

While a very impressive effort, and I love it, I should point out that there is a risk here of the classic confusion between correlation and causation. This confounds forecasting all the time and is a central conversation among forecasters I think.

Why? Well this is a forecasting effort, that is the first observation. Essentially we're hoping to predict that if I post my JavasScript article on Wednesday my chances of reaching people, gaining views and reactions, rises. While not explicitly stated, it's implicitly the goal.

One of the main tools forecasters have is history. But all history can show us quickly and easily is correlated measures. In this case we see a correlation between Wednesday posts and appearing in the top 50.

But for this to form a substantial forecast we need to assume or demonstrated or hypothesise if you will a causative relationship. Is it the case that posting on Wednesday raises the likelihood of that. A true forecasting effort pursues some evidence as to that hypothesis.

One hypothesis is that the editors compiling those lists attend to the job on Thursday as a routine ;-). Confirmation would require a word from DEV editors.

Collapse
 
code_jedi profile image
Code_Jedi

I'm pretty sure the top posts lists are compiled automatically by number of reactions and/or reads.
I guess it might also be that there are a couple of really big creators in a tag like Javascript that just routinely post on a Wednesday and get the attention of their followers no matter what and become top posts.
Still, I doubt that this is the case because from what I've seen, the top 50 posts from a tag are dominated by at least twenty different creators.
As for evidence, of corse, if you make a crappy post but post it on a Wednesday, you still won't get good results. But considering that you've made a proper post for a tag, taking into account that the biggest portion of the top 50 posts in your tag have been posted on a Wednesday, wouldn't that, considering the diversity of the posts and creators in the top 50 list, increase your post's likelihood of performing better than it would have if you had posted say on a Monday?

Collapse
 
aneeqakhan profile image
Aneeqa Khan

wow! most common days are Wednesday and Thursday ✌🏼

Collapse
 
code_jedi profile image
Code_Jedi

That's why I posted on a Thursday ;) 👍

Collapse
 
aneeqakhan profile image
Aneeqa Khan

awesome 😄 and I can see this as a top post 🤞🏻

Collapse
 
Collapse
 
code_jedi profile image
Code_Jedi

I've never heard of this API. How did you find it?

Collapse
 
ouzkagan profile image
ouzkagan

Oh I just checked network tab :)

Collapse
 
zippytyro profile image
Shashwat Verma

Dev.to have their own api. Just search devto API on google. You can do ton of stuff with it. Great post btw

Collapse
 
johnrock profile image
John Rock

Love the analysis and great work building the app to gather the data.

Collapse
 
code_jedi profile image
Code_Jedi

Thanks ;)

Collapse
 
lucasandre profile image
Lucas André

Awesome! Thanks! :D

Collapse
 
ronaldgrowe profile image
Ronald Rowe

Great idea for a project! Also, great work on the project! 👊

Collapse
 
code_jedi profile image
Code_Jedi

Thanks👌

Collapse
 
shareef profile image
Mohammed Nadeem Shareef

Now I will post only on Wednesday.

Thanks man!

Collapse
 
theaccordance profile image
Joe Mainwaring

Awesome work creating a solution that outputs an insight!

Collapse
 
trishathecookie profile image
Trisha Lim

Interesting. What about the best time of day?

Collapse
 
renanfranca profile image
Renan Franca

@code_jedi, I am interested in the best time of the day too 🤓

Collapse
 
umutarcn profile image
Umut A.

Great idea for a project! Thanks!

Logo Source : Nodejs Logo

Collapse
 
jackbrownandhiskeyboard profile image
Jack Brown

Nice article!

Collapse
 
kodydev profile image
Kody

pretty interesting !!

Collapse
 
nicooo profile image
Nicolas Marsan

yes i think so too !!!!!

Collapse
 
code_jedi profile image
Code_Jedi

Thanks, Web Scraping is super cool indeed 😎

Collapse
 
rolfstreefkerk profile image
Rolf Streefkerk

The best posting day is the day your article is finished and you're satisfied with the quality.

Collapse
 
tythos profile image
Brian Kirkpatrick

Next step: Use d3.js to plot activity/post distributions across time periods! 1500z? 1800z? 2100z? The dev.to community wants to know!

Collapse
 
mfurmaniuk profile image
Michael

Might want to change Thuesday to Tuesday.

Collapse
 
code_jedi profile image
Code_Jedi

done.