Unfollow everybody on Twitter
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
Gemfile
Gemfile.lock
LICENSE
README.md
krausefx_unfollowed.txt
unfollow.gif
unfollow.rb

README.md

twitter-unfollow

My goal for the next months is to spend less time on social media and more time creating. Instead of reacting to things, I want to focus on having a bigger vision, planning things ahead and doing what has the highest impact.

I've been reading every single tweet in my timeline for the last 4 years with no interruption.

In total I have over 100 custom mute filters, including custom regexes like (@United|delta|Delta|JetBlue|jetblue)), and muted clients like Buffer

It's time for me to stop reading so much on social media portals, and focus on reading books instead.

I'll still follow a small amount of people via Twitter lists, since there are certain things I really don't want to miss

unfollow.gif

View full blog post on my Twitter setup

This script does the following:

  • Unfollow everybody
  • Puts them into a list called "Old Follows"
  • Store the usernames of everyone in unfollowed_usernames.txt (this allows you to pretty easily follow everyone again when you feel like it)
  • Store the usernames, together with full name and bio into unfollowed_full_names.txt (this allows you to search for users)
bundle update
bundle exec ruby unfollow.rb

Notes:

  • Make sure to have DMs open to still be able to chat with your friends.
  • Use a list to follow a small subset of people. This way you follow 0 people and nobody feels left out. The list can be private.
  • Make sure to create a list called "Old Follows"

Technical Notes

  • Create your application via Twitter Apps
  • Set the following environment variables
    • ENV["CONSUMER_KEY"]
    • ENV["CONSUMER_SECRET"]
    • ENV["ACCESS_TOKEN"]
    • ENV["ACCESS_TOKEN_SECRET"]
  • Due to the API limits this script can only unfollow about 420 people per run. You'll need to regenerate keys after this 🤷‍♀️

View full blog post on my Twitter setup