Twitback is a project mainly written in Ruby, it's free.
Quick and dirty script to retrieve my tweets