Skip to content

Instantly share code, notes, and snippets.

@chrislaughlin
Created October 10, 2013 22:06
Show Gist options
  • Save chrislaughlin/6926389 to your computer and use it in GitHub Desktop.
Save chrislaughlin/6926389 to your computer and use it in GitHub Desktop.
Reading in a search from twitter
console.log("Reading in the last 10 tweets with search: belfast");
T.get('search/tweets', { q: 'belfast', count: 10 }, function(err, reply) {
if (err) {
console.dir(err);
} else {
for (var i = 0; i < reply.statuses.length; i++) {
var status = reply.statuses[i];
console.log('*************************');
console.log(' username: ' + status.user.name);
console.log(' ' + status.text);
console.log(' time/date: ' + status.created_at);
console.log('*************************');
}
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment