Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.