What I learned from building a twitter Art Bot
summary
A Twitter bot called an eggspot queries the Rijksmuseum API for an image matching a tweeted word and replies with that artwork, built in Ruby using the Twitter gem and simple get_image / reply_with_image methods. Early failures include leaking secret keys to GitHub, getting locked out by an infinite reply loop that produced about 25 tweets before Twitter suspended the account, and defaulting to tulip results so a random_image fallback is added.
AI-written summary · about
chapters (9)
- 0:00Introduction
- 1:52What is a Twitter bot?
- 4:02Twitter bots gone wrong
- 5:53Open Glam movement
- 7:25Building the bot
- 10:36Things that went wrong
- 11:41Fixing secret keys leak
- 12:45Twitter account locked
- 14:36Conclusion and future plans
related talks
39mSmall Batch Artisanal Bots: Let's Make Friends
23mWriting Robot Plays NodeJS, Reddit
27mSkynet for Beginners
36mRuby is For Fun and Robots
16m@Dissidentbot: dissent will be automated! #bbuzz
35mConsuming the Twitter Streaming API with Ruby and MongoDB
28mCreating generative art with Javascript
46mThe History of Computer Art
