This program shows how to import a set of tweets into a CouchDB database. It is hard coded with knowledge of the particular file that needs to be imported but those aspects of the program can easily be generalized. I make use of Typhoeus to make the actual GET and PUT requests that are needed.
The program also shows how to implement a command-line "spinner" where the program updates just a single line of text while importing the tweets to show progress.