Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@impronunciable
Created October 27, 2012 16:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save impronunciable/3965177 to your computer and use it in GitHub Desktop.
Save impronunciable/3965177 to your computer and use it in GitHub Desktop.
var tuiter = require('tuiter')(keys);
var getTweets = function(screen_name, max_id) {
tuiter.userTimeline({screen_name: screen_name, max_id: max_id}, function(err, tweets){
//save tweets
//get more
if(tweets.length)
getTweets(screen_name, tweets[tweets.length - 1].id - 1);
});
};
getTweets('username');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment