Twitter Cleanup

Happy New Year everyone! My first blog post of 2015 will help you to cleanup your following list on Twitter. The goal is to only follow someone if you are interested in their Twitter content or if they are following you back. Everyone else will be unfollowed.

To achieve this I wrote a little script which will do this automatically for you. Before you can run it for the first time you will have to do some preparations though.

First create a new list on Twitter and add everyone to it who should not be unfollowed no matter if they are following you or not. By default this list is called 'Reading' but you can change it to whatever you like by changing the KEEPLIST variable in the script.

Then install the excellent command-line Twitter tool T and authorize it to use your Twitter account. You need to register a Twitter app for that. For more information please have a look at the T documentation.

Download the script and execute the following commands in the terminal:

chmod 744 twitter-clean.sh
./twitter-clean.sh

Download