Created
September 26, 2012 17:55
-
-
Save anonymous/3789511 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* To run this fill in the config, and `npm install ntwitter` | |
*/ | |
var twitter = require('ntwitter'); | |
var config = { | |
"access_token_key": "", | |
"access_token_secret": "", | |
"consumer_secret": "", | |
"consumer_key": "", | |
"q": "#yolo" | |
} | |
var tweets = new twitter(config); | |
tweets.stream('statuses/filter', {track: config.q}, function(stream) { | |
stream.on('data', function(tweet) { | |
console.log(tweet); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment