As some of you may know, 2014 marks the 100th anniversary of the start of the First World War. Being particularly interested in this war, I have started a twitter account that links to news articles for each day. The idea is to give folks a day-by-day feel for the war much like you might get were it happening right now. You can see it here:
https://twitter.com/oldgreyhorror
My sources for articles provide me with anywhere from 5 tweets a day to 30 or more tweets a day. It varies. As you can imagine, it's fairly tedious work to locate it, read it, summarize it, and tweet it. I'm trying to simplify the process. My plan is to:
1) Acquire the articles in advance and load them in a database. Each tweet/article has a date associated with it. E.g., 1914-08-01. I'll use some nepotistic laborers for this bit I expect.
2) Write the tweet part myself.
3) For some articles, I want to pick an exact time for the tweet to issue forth. E.g., "Franz Ferdinand shot in Sarajevo" would have a specific time. For other articles, having to choose a specific time is unnecessary and would be tedious. For these "whenever" tweets, I would just like to spread them out evenly throughout the day.
My question is whether anyone has a good recommendation for a cron job algorithm that will effectively tweet some of the tweets at precise times while spreading the other tweets out evenly during the day. This is complicated firstly by the fact that some tweets need to be precisely timed and also by the fact that some days have lots of tweets (~30) and some have very few (~5).
I'm thinking that we need to generally distinguish timed tweets from non-timed ones but then when I try to think of a way to spread out the other miscellaneous other tweets throughout the day, things get more confusing. It has occurred to me to count up the remaining "miscellaneous" tweets for the day and calculating a probability based on the time remaining and the number of tweets remaining, but that seems pretty messy. Calculating a time for each tweet in advance may not be feasible because I might be adding tweets on the actual day they are to be tweeted -- when would such a calculation occur?
Any thoughts are welcome.