Robin Berghuijs Design - A Python Twitter bot that writes Onion headlines
A Python Twitter bot that writes Onion headlines
Python is such a great programming language, I like to tinker with it. Seeing how easy it is to use libraries like Markovify and Tweepy, I decided to make my own Twitter bot.
Inspiration came from the Speld Bot—De Speld being a Dutch version of the Onion. I call mine The Onion bot and it recreates headlines from The Onion. It does this by first scraping the website and RSS feed of The Onion and storing all the headlines. It then uses Markov chains to generate new headlines and publishes them on Twitter every hour. It is hosted on Heroku, which was actually not that difficult to figure out.