Projects
Writing
About


Twitter Banner Rotator

If you use Twitter a lot, you’ve probably put some thought into your Twitter banner, profile picture, etc. But what if there are so many good pictures that you don’t know which to pick? I ran into this problem. I was trying to choose between two of my favorite webcomics (below) as a banner, couldn’t decide, and then asked: why not both?

My solution was to select a set of pictures that I liked, and then to write a script to randomly choose from the pictures, automatically updating my Twitter banner to a new one, once a day.

Running the script exactly once a day (or however often you like) is actually quite straight-forward if you deploy the script to Heroku and use Heroku’s built-in scheduler. You can deploy this yourself by cloning the GitHub repository and then following the included instructions. I also offer some suggestions for extending this project.

Follow me on Twitter.


This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.