Twitter Bot https://t.co/ZzE6pCRSA0 https://t.co/1176CEpFqJ pic.twitter.com/a4vCMczTHa
— XKCD Comic (@xkcdComic) February 22, 2016
Tutorials¶
General¶
- How to Make a Twitter Bot: The Definitive Guide (by Stefan)
- Creative bots and accessibility (by Stefan)
- Twitter and Procedural Generation (by Joe Sondow)
node.js¶
- Botwiki on Glitch (by Stefan)
- Twitter Bot Tutorial – Node.js and Processing (by Daniel Shiffman)
- tracery-twitter-bot (by Byron Hulcher)
- Make a Twitter bot that tweets random images (by Stefan)
- Smarter & Cuter Bots (by Rachel White)
See also: Twitter bot project templates on Glitch
Python¶
- What is a Twitter bot? (by Molly White)
- How to create a Twitter bot (by Molly White)
- Build A Bot Workshop (by Terian Koscik)
- Making a bot that tweets a random image (by Stefan)
- Build and Deploy Twitter Bots with Python, Tweepy and PythonAnywhere (by Iyanuoluwa Ajao)
- How To Create a Twitterbot with Python 3 and the Tweepy Library (by Lisa Tagliaferri)
- Using Twitter bots for data visualization (by Stefan)
- Tutorial Creating a Twitter bot with Python, OAuth 2.0, and v2 of the Twitter API (by Jessica Garson)
- Noun Verb Bot (by Jessica Garson)
- Kickstart your Twitter bot with our Glitch example written in Python (by Jessica Garson)
- Five Steps To Build Your Own Random Non-Sequitur Twitter Bot (by Lauren Orsini)
- How to Code a Simple Twitter Bot for Complete Beginners (by Sarah Sahim)
- Coding a simple Twitter bot (by Anthony Gladman)
- Devs in the Details: How to Create a Twitter Bot (by Jessica Garson)
- How to Build a Twitter Text-Generating AI Bot With GPT-2 (by Max Woolf)
Never ceases to amaze, stun me that a significant number of the “people” on Twitter are programs.
— Josh Marshall (@joshtpm) March 10, 2017
Ruby¶
- Civ V Random Game Generator Twitterbot (by Katelyn Dinkgrave)
- Your Own @Horse_ebooks (by Josh Trommel)
Tracery/Cheap Bots Done Quick¶
Check out the dedicated Tracery page.
SSBot (Google Spreadsheets)¶
Tutorials that use Zach Whalen‘s Google Spreadsheets-to-Twitterbot tool.
- Tiny Flashing Thumbs (by Zach Whalen)
- Hook, bait and camouflage (by Nora Reed)
- How to make a Twitter Bot with Google Spreadsheets (by Zach Whalen)
Raspberry Pi¶
- Raspberry Pi Twitterbot (by Scott Kildall)
- How to build a nonsensical Twitterbot on the Raspberry Pi (by Emily King)
- Python + BeautifulSoup + Twitter + Raspberry Pi (by Robin Camille Davis)
Other languages¶
- Build Your Own Topic Bot (by Hatnote)
- How to Write a Twitter Bot in 5 Minutes (by Amit Agarwal)
- Tutorial on Python Twitter Bots (by @mcburton)
- How to Build a Law Bot (by David Colarusso)
- Tutorial on Creative Twitterbots (by Tony Veale)
- How I Built a Twitter Bot Using Auth0 Webtasks and Data.gov (by Auth0)
- Create a simple, free, text-driven Twitterbot with AWS Lambda & Node.js (by Erin McKean)
- Polyglot Twitter Bot (by Joel Grus)
- Twitterβs missing manual (by @eevee)
- Alt text support for Twitter Cards and the REST API (by @twitterdev)
- API support for 140 second video (by @twitterdev)
- Tweet Metadata Timeline (by Jim Moffitt)
- Emoji on Twitter (by Emojibase)
See also @twitterapi for updates on the Twitter API and the Twitter Developer Platform Roadmap Trello board.
Twitter delays shutdown of legacy APIs as it launches a replacement https://t.co/OGEWfHT4E8 via @techcrunch
— A friendly encyclopedia of 🤖💻💾 (@botwikidotorg) May 17, 2018
Migration Guide: Moving from User Streams/Site Streams to Account Activity API: https://t.co/pgQ4U1EVaE
— A friendly encyclopedia of 🤖💻💾 (@botwikidotorg) May 17, 2018
Some #TwitterAPI Trivia
Twitter launched in 2006, and just a few months later, the Twitter API was released. 🎉
The first s̶e̶t̶ ̶o̶f̶ ̶d̶o̶c̶s̶ doc for v1 looked like this 👇 pic.twitter.com/VpvIma5wRk
— Twitter Dev (@TwitterDev) July 15, 2020
Frameworks and libraries¶
Twitter API¶
node.js¶
- twit (by Tolga Tezel)
Python¶
- tweepy (by Tweepy)
- twython (by Ryan McGrath)
- twitterqa (by Pascal van Kooten)
- heroku_ebooks (by Tom Meagher)
Ruby¶
Java¶
- markov (by Joe Sondow)
- lambda-twitter-base (by Joe Sondow)
Other languages¶
- anaconda (by Aditya Mukerjee)
- twitterBot (by Matteo Redaelli)
- Literal Twitter Bot Kit (by BubbleSort Zines)
For more frameworks and libraries built for the Twitter platform, check out Twitter Libraries at developer.twitter.com.
Working with language¶
Python¶
- word-tools (by Hugo)
- twitter_markov (by Neil Freeman)
Working with images¶
Python¶
- randimgbot (by Hugo)
- spatchwork (by Bob Poekert)
- binary-numbers (by Ross Spencer)
Tools¶
See also: A list of Twitter-bot hosting platforms.
Python¶
Other¶
Latest from the blog
Cheap Bots, Done Quick suspended, this time for good
So long, and thanks for all the bots.
Twitter shutting down free access to their API on February 9
I keep saying it's an end of an era quite often these days.
How do folks get into creative botmaking?
Sharing the stories of our early botmaking days.
What kind of bots are posting in the fediverse?
Exploring the bots people make and follow in the fediverse.