Created
March 22, 2011 23:32
-
-
Save jsocol/882331 to your computer and use it in GitHub Desktop.
watch #fx4 tweets stream in
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
/** | |
* 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