node package manager
Love JavaScript? Your insights can make it even better. Take the 2017 JavaScript Ecosystem Survey »



Quickly and easily import your Twitter archive into MongoDB. Why? Because data.


You'll need the following:

Mac users, you can install these with Homebrew:

$ brew install node
$ brew install mongodb


Install the node module globally:

$ npm install -g twimo

Download your Twitter archive and unzip it somewhere.

From the command line, run the following to import tweets into the mongodb database at mongodb://localhost/twitter_archive in the tweets collection.

$ twimo path/to/tweets

path/to/tweets should be the path to the folder that was created by unzipping your archive.


The command line interface has a couple of options which allow you to change the database/collection which Tweets get imported into:

$ twimo --help
  Usage: twimo [options] <archive-path>
    -h, --help                 output usage information
    -V, --version              output the version number
    -d, --dbstring <string>    Specify a mongodb connection string (must include database part)
    -c, --collection <string>  Specify the collection to import tweets into


Copyright 2013, Rowan Manning
Licensed under the MIT license.