Home > nodejs-mongodb-twitter-backup

nodejs-mongodb-twitter-backup

Nodejs-mongodb-twitter-backup is a project mainly written in JavaScript, it's free.

node.js script to write tweets into a mongoDB

nodejs-mongodb-twitter-backup

it's a very basic node.js script which uses the twitter-node and mongodb packet.

step 1 - install node.js

clone git://github.com/ry/node.git and install it with the commands below. $ ./configure $ make $ make install

step 2 - install mongoDB

download the mongoDB binaries from here

step 3 - install npm (node packet manager)

head over npmjs.org for instructions on how to install npm

step 4 - install packets twitter-node and mongodb

$ npm install twitter-node
$ npm install mongodb

step 5

$ git clone git://github.com/philippkueng/nodejs-mongodb-twitter-backup.git

Then start the mongoDB database by typing mongod After that start the node.js server with the script by typing node get_tweet_and_store_it_in_db.js

while / after running the script

start the mongoDB shell with mongo you then can do a find query with db.wt.find({'user.screen_name','screen_name_im_looking_for'})

you'll find more queries and examples in the mongoDB documentation.

Previous:nicotool