Skip to content

Instantly share code, notes, and snippets.

@jsocol
Created March 22, 2011 23:32
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jsocol/882331 to your computer and use it in GitHub Desktop.
Save jsocol/882331 to your computer and use it in GitHub Desktop.
watch #fx4 tweets stream in
/**
* Start by cloning git://github.com/technoweenie/twitter-node, then
* save this file in the same directory as the clone, edit the login
* information, and run it with:
*
* $ node twitter-fx4.js
*
* then sit back and watch!
*/
var twitter = require('./twitter-node/lib/twitter-node'),
sys = require('sys');
var Twitter = new twitter.TwitterNode({
user: 'your-username',
password: 'your-password',
});
Twitter.addListener('error', function() {});
Twitter.addListener('tweet', function(tweet) {
sys.puts('@' + tweet.user.screen_name + ': ' + tweet.text);
});
Twitter.track('#fx4');
Twitter.stream();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment