Twitter Network Cleaner

Unfollow every one in a list that isn't following you

Share:  
Table of Contents

If you love me, follow me 💓

We all know those Twitter account with 10x more following than followers, and let's be honest.. we don't want to be there. You already know that you're a wonderful human being & therefore you shouldn't give more love than you receive. 🐦

Love shouldn't be one-sided

Once with a list of people you follow, Let our API do the work and remove all those accounts who don't follow you back. Their loss!

What will you need? ⚙️

  • "Spreadsheet URL": Link of an open spreadsheet containing a list of twitter profile urls you want to check for followback
  • "Session Cookie auth_token": Your Twitter auth_token session cookie.

Which steps to follow?

1. Create an account on Phantombuster.com 💻

If you haven't already, create a FREE account on Phantombuster. Our service will browse the web for you. It’s a website automator which runs in the cloud. Once done we'll follow up.

2. Use this API on your account.👌

Now that you're connected to Phantombuster, Click on the following button (it will open a new tab).

3. Click on Configure me!

You'll now see the 3 configuration dots blinking. Click on them.

4. Create a nice Spreadsheet

In the 1st argument field paste the URL of a spreadsheet filled with Twitter profile URLs, all on column A

The API will check each one of them if they're following you back. If they aren't the API will unfollow them.

5. Get your Twitter Session cookie

The Session Cookie you'll need to make this API work is called "auth_token",
Here's how you can get yours:

  • Using Chrome, go to your Twitter homepage and open the inspector
    → Right click anywhere on the page and select “Inspect”
    CMD+OPT+i on macOS
    or
    F12 or CTRL+MAJ+i on Windows

  • Locate the “Application” tab

  • Select “Cookies” > “https://www.twitter.com” on the left menu.

  • Locate the “auth_token” cookie.

  • Copy what’s under “Value” (Double click on it then Ctrl+C) and paste it into your script Argument)

// How to access your cookies with Edge, Firefox and Safari//

Click on Launch & Enjoy!

It’s done! All that is left to do is to click on "launch" to try your script!

More bots like this one will be added to Phantombuster,

stay tuned & check our API store!💗

Output

This API will output CSV and/or JSON containing the following fields:

  • url (URL of the persons unfollowed)

Developers

Like all APIs on Phantombuster, this API comes with an HTTP endpoint. Launch it from your computer, app or server with a simple HTTP request and get its result as JSON. Click Use this API above to create your new endpoint.

Clone this API

The script below is all that's required to make the API work. If you're a developer, click the button to clone the code into a new Custom API Agent in your Phantombuster account. This operation will allow you to customize the API to your exact needs. This will also create a custom HTTP endpoint.

Contribute on GitHub

Feeling adventurous? Unsatisfied with the current state of this API? Send us pull requests on GitHub to improve the API store! The script is here and you might be interested in reading our documentation here

You can also edit the page you're reading right now

(we reward contributions we like with free Phantombuster accounts :D)

Share this API

Your friends & colleagues need to know about this!