Tutorials for Twitter Bots

Before you start making bots, consider reading these essays and articles. Also worth browsing: resources for cleaning up your bot's language.

Learn how to make bots for Twitter (Wikipedia link) below -- or look at some Twitter bots for inspiration.

XKCD: Twitter Bot

And you're more then welcome to join us in the public Botmakers Slack group to share what you're working on, ask for advice, or just chat with fellow artists, journalists, educators, tinkerers, and bot enthusiasts!

(Here's our Code of Conduct.)

Can't wait to see you there!

Beginner tutorials

node.js

Python

Ruby

Cheap Bots Done Quick

Tutorials for Cheap Bots Done Quick. For example bots, see the #cheapbotsdonequick tag.

See also: Botmaking from the Ground Up

SSBot (Google Spreadsheets)

Tutorials that use Zach Whalen's Google Spreadsheets-to-Twitterbot tool.

See also: Botmaking from the Ground Up

Other

Intermediate tutorials

Twitter API

See also @twitterapi for updates on the Twitter API.

Unsorted and notes

Note on needing a phone number

One tricky part of making a bot for Twitter is that if you want your bot to be able to actually post on Twitter, rather than just read from it, you will need to add a phone number to your account.

There is a few ways to solve this:

  • see Molly White's tutorial that explains how to transfer your Twitter app to another account
  • you can remove the phone number from your account and associate it with a new one
  • you can sign up for Google Voice (Skype number won't work, because Skype doesn't let you receive text messages, which you will need to verify your phone number)

And once you have one account verified, you can also host all your bots under the same account.

Tools and Twitter-specific resources

See Resources for Twitter bots and open source code for Twitter bots.

Also be sure to read the Twitter Rules, the Twitter developer policy, the automation rules and best practices and learn about the API Rate Limits.

Support Botwiki through donations or the Botwiki store! Here's a list of our supporters.

Tags: #tutorials #twitter