Cull your Twitter Friends with Thanos

Every now and again it feels good to cull some of the people you follow on Twitter. Sometimes though, you are not sure on who to remove and who to keep.

I was having the same dilemma, and thought that there had to be an easy way. I had used Tweepy previously, and thought to call upon it to help with the cull.

I wrote a basic Python script which is inspired by Thanos. It can be found on GitHub. I will give a quick run though on how to run it.

First of all we need the Tweepy module installed. It can be done with Pip.

pip3 install tweepy

Now we need to create a folder in which to download the script.

mkdir ~/thanosTwitter

change into the directory and download the script.

cd ~/thanosTwitter && curl -O https://raw.githubusercontent.com/0x6A6F7368/thanosTwitter/master/thanosTwitter.py

You will now need to create a Twitter developer account. This is so you have the keys for the API access. You can create a developer account on the Twitter Developer website. You will also need to create a Twitter app through the developer portal. Once you have the keys you can add them to the script with the text editor of your choice.

Save the changes and it is time to run the script. Before doing so I would like to point out that the script does not give warning and will start unfollowing as soon as it is executed. If you are happy with this, run the script.

python3 thanosTwitter.py

Once the script finishes, you will have half an many friends on Twitter, and the universe will be perfectly balanced, just as Thanos intended.