An Example Twitter Bot
Written for node.js. Hey! Replace the
generateTweet() function in
with a tweet-generating algorithm of your choice, and then schedule it to run
as a cron job using a command line like this:
node bot.js APP_KEY APP_SECRET ACCESS_TOKEN TOKEN_SECRET
APP_KEY with your application key,
APP_SECRET with your
ACCESS_TOKEN with your user's access token, and
TOKEN_SECRET with your user's access token secret.
But where do I get these keys, tokens, and secrets?
That's a good question! Here's a good walkthrough.
This repository includes an interactive command-line script,
which will guide you through the process of obtaining an access token and
token secret for a user with a given Twitter application.