Twitter Archive

Around a year ago, Kevin Hendricks posted a simple question on Twitter asking for recommendations of methods to back up your Twitter updates. He wanted an automatic and local solution—a man wise enough to realize users don't make backups when they have to put thought into it (cf. Apple's Time Machine).

Aptly, I can't find his question today. And since I couldn't find that, I built this.

Essentially, it cycles through my Twitter updates every 10 minutes, stores any new information in a database, then displays that information in a searchable manner. Nothing too fancy.

But let's talk more about why.

A slight rant on search and pagination

Looking for Kevin's year-old update exposes the shortcomings of Twitter's history.

Twitter's own search function has only a 10-day memory. Alternately, I could paginate through his last 3200 updates, which they allow access to. Twitter's AJAX pagination, however, makes this experience fall somewhere between a headache and a disaster. The feature [sic] means the page doesn't have to reload when you click "more," but it also means that the URL contains no clue to where in the search results you are.

For example's sake, navigate to a user's page. Mine will do just fine. Now say you have hit "more" 100 times, which means a single page holds 2,000 results. But the URL still reads as http://twitter.com/jpcody. And should you navigate away, experience a browser crash, or accidentally hit the "Back" button of your browser, all your clicking and scrolling is lost. When you return to the page, you only get the 20 most recent updates for said user.

Then you cuss, your children hear, they repeat the words at school, and Twitter has landed you back in the principal's office.

So you built this just to search?

Not completely, although that's certainly a part of it. It is nice to be able to simply search "allanwhite" when I'm looking for something I remember saying to him back in September.

More importantly, I built it because Twitter doesn't exactly have a sparkling track record. Not even within the last week. And I don't trust my data in their hands.

Jeff Atwood recently experienced a nearly entire loss of his site, Coding Horror, and had this to say in its wake:

Don't rely on your host or anyone else to back up your important data. Do it yourself. If you aren't personally responsible for your own backups, they are effectively not happening.

Not to be a doomsayer, but Twitter could die. It's part of life for any service, bird, or application. There are malicious people out there with fast computers and an appetite for destruction. There are also brain farts, server errors, and lacks in foresight. It's just life on the internet.

Least of all, it's fun to be able to easily navigate to my first musings and see what I was saying back then. At this point, I haven't hit the magical number of 3200, so I could retrieve all of my updates (and still link to them on Twitter, should I choose). And now, my first 3200 will be stored on my own server, so even when I pass this upper-limit, I'll be able to access them at http://joshuacody.net/twitter.

(And, my server space and databases are backed up nightly to my personal machine, which is backed up to rotating hard drives, so I can really, really keep my data.)

All this for some stupid Twitter updates?

Yes, with a caveat.

Most people are guilty of a hasty generalization with Twitter. It's still commonly assumed that it's a place to "type what you ate for breakfast." (This fallacy comes in other packages as well, but it's the one tossed about most often.)

But I don't view it as such.

Twitter is a big corner of my online life where I store drafts of ideas, links to things I love, and snapshots of moments in time.

It's where I've learned the most about editing, the power of brevity, and the real-world value of sharing information. I can look back through my corner and see where I was a year ago—the things I was linking to, the way I was writing, or the pictures I was uploading. I can see where I was wrong and what I would do differently. And yeah, I've even said things that, to me, were wise enough or clever enough to keep.

The future

I'm thinking and brainstorming of ways to make this available to other folks. If it's something that'd be useful to you, then please follow me and retweet the following message:

I'm kidding. But let me know on Twitter or via email, and if it's something enough folks are interested in, I'll put some time and effort there.