Created
December 10, 2011 02:31
-
-
Save cronopio/1454337 to your computer and use it in GitHub Desktop.
My Twitter client for shell using nodejs and ntwitter
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
node_modules/ |
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
module['exports'] = {} |
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
#!/usr/bin/env node | |
var twitter = require('ntwitter'), | |
colors = require('colors'), | |
keys = require('./keys'), | |
tc = new twitter(keys); | |
tc.verifyCredentials(function(){}); | |
tc.search('node.js',function(error, data){ | |
data.results.forEach(function(msg){ | |
var nick = '@' + msg.from_user; | |
var tweet = new String(msg.text); | |
console.log(nick.green + ' >> ' + tweet.blue); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment