Skip to content

Instantly share code, notes, and snippets.

Created September 26, 2012 17:55
Show Gist options
  • Save anonymous/3789511 to your computer and use it in GitHub Desktop.
Save anonymous/3789511 to your computer and use it in GitHub Desktop.
/**
* 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