all posts

More Twitter Fun - RandomTweets.com

Published to Blog on 2 Oct 2007

While looking at the Twitter API last week I found myself taking a glance at the public timeline - basically just to see what fields the RSS and XML feeds offered. I didn’t really pay the content all that much attention, but one of the updates struck me as pretty funny. I took a look at a couple more and found that out of the 10 most recent updates two were fairly humorous. The funniest ones, I thought, were the ones taken out of context. If you randomly look at just one update without following the person’s entire “conversation” it can sometimes be a lot funnier than the whole.

That got me thinking (I can hear Jose saying “Uh-oh” now). How about grabbing the last 10 or so updates from the Twitter public timeline at random times during the day, filtering out the junk and then judging the best of the rest for humor, inspiration, whatever.

Last night I built a console app that would grab the last X status updates from the Twitter public timeline at random times and add it to a database. Tonight I built a simple admin interface for deleting and ranking the tweets. Then I built a simple one page front end for displaying the top 10 from the day prior. The end result - RandomTweets.com.

I think that it would work better as a community driven site allowing users to rate the random tweets via a +1/-1 method like Digg or DotNetKicks, but for now (since there is no community with an hours-old site) it will have to be manually done by me. Patrons will be subjected to the top ten based on my sense of humor. Luckily the manual labor is only 15 minutes work or so to delete the trash and pick out the gems. Surprisingly, I’ve found from one days experience that there is no lack of humor in random updates taken from Twitter - it was really difficult for me to pare the list down to ten. It could easily have been 25 instead, but I’m leaning more towards simplicity both in the UI and options.

My abbreviated ToDo list includes:

  • adding an RSS feed for the top 10 from the previous day (so it would be like Gullible.info’s RSS feed - just one RSS update per day), DONE

  • add the ability for users to comment on each of the tweets,

  • add an “archive” or some way of seeing the the top 10 from past days (DONE)

  • eventually add the ability for the community to rate the random tweets (and thus determine the top 10) rather than me doing so.

  • further randomize the randomization. Currently I’m just hitting Twitter once an hour and grabbing the last 20 updates. I think I should change the timer to pull the data at some random time between 30-90 minutes and then reset again. DONE

Overall it’s a simple idea with a simple implementation. The data gathering is simple, the site is simple, I’m pretty simple. Oh wait… didn’t mean that last one.

Let me know if you have any questions, comments, suggestions. Feedback is welcomed.

P.S. - for many of you reading this the site’s UI will look very familiar :)


Dan Hounshell
Web geek, nerd, amateur maker. Likes: apis, node, motorcycles, sports, chickens, watches, food, Nashville, Savannah, Cincinnati and family.
Dan Hounshell on Twitter


  • On 2 Oct 2007 "Jose Lema"" said:
    It looks like you took my idea and ran with it. Well done! P
  • On 2 Oct 2007 "José Lema"" said:
    Earlier this week, DanH pinged me with a new Twitter idea. It sounded like fun, so I listened and offerred
  • On 2 Oct 2007 "Jose Lema"" said:
    Earlier this week, DanH pinged me with a new Twitter idea. It sounded like fun, so I listened and offerred
  • On 4 Oct 2007 "MichaelDotNet"" said:
    Interesting idea ) Should be fun to watch!
  • On 4 Oct 2007 """ said:
    Thanks, Michael. Hopefully I can keep finding the time to plug away at it in the wee hours. If so it shouldn't take too long to get it where I want to be.
  • On 4 Oct 2007 "MichaelDotNet"" said:
    I like the idea of their being a top 10 and then random ones on the bottom tha people vote "up and down", makes sense. Like I mentioned on my blog it's similiar to a "Twitter Bash.Org", wondering if you're going to take submissions at some point? )
  • On 10 Oct 2007 "Digging My Blog - Dan Hounshell"" said:
    A little over a week ago I announced my latest little fun site RandomTweets.com . It was a nice little
  • On 12 Nov 2007 "Cathleen Rittereiser"" said:
    Randomtweets.com is genius. I discovered it on one of my rare ego googles and found one of my tweets from October 18th. (Ted Williams head-quite proud of it). I just love it, I just went through and laughed at a bunch of them. Glad you thought of this. See you on Twitter. Cathleen Rittereiser http//twitter.com/cathleenritt
  • On 13 Nov 2007 """ said:
    Cathleen, Genius? I doubt that, but it is a lot of fun. I'm glad you enjoy(ed) it. Since then I've created a similar site (actually the same site, just different data) for Jaiku, randomjaikus.com and within the last week another for Pownce, randompownce.com.