Created
October 10, 2013 22:06
-
-
Save chrislaughlin/6926389 to your computer and use it in GitHub Desktop.
Reading in a search from twitter
This file contains hidden or 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
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