Skip to content

philippkueng/nodejs-mongodb-twitter-backup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

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:https://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:https://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.

About

node.js script to write tweets into a mongoDB

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published