Twitter_archive is a project mainly written in Ruby, it's free.
MongoDB twitter_archive project
The TweetArchiver project from the Manning MongoDB in Action title.