Python Script for unfollowing People on Tik Tok automaticly
This script automatically unfollows all accounts you follow on TikTok – except your friends (mutual follows are kept).
The script works with TikTok in the following languages:
- 🇺🇸 English
- 🇩🇪 German
- 🇪🇸 Spanish
- 🇫🇷 French
- 🇧🇷 Portuguese
- 🇮🇹 Italian
- 🇯🇵 Japanese
- 🇰🇷 Korean
- 🇨🇳 Chinese
- A Windows, Mac or Linux PC
- An Android phone with TikTok installed
- A USB cable
- Python 3 (free)
- ADB (free)
⚠️ Android only! iPhones are not supported.
- Go to python.org/downloads
- Click "Download Python"
- Run the installer – important: check the box "Add Python to PATH" before clicking install!
- To verify it worked, open CMD (press Windows key → type
cmd) and type:You should see something likepython --versionPython 3.x.x.
ADB (Android Debug Bridge) is a tool that lets your PC communicate with your phone.
Windows:
- Go to developer.android.com/tools/releases/platform-tools
- Click "Download SDK Platform-Tools for Windows"
- Extract the ZIP file somewhere easy to find (e.g. your Desktop)
- Open CMD inside that folder: Shift + Right-click in the folder → "Open PowerShell/CMD here"
- Type
adb version– if you see a version number it worked ✅
Mac:
- Install Homebrew if you don't have it
- Open Terminal and type:
brew install android-platform-tools
Linux:
sudo apt install adb- Open Settings on your phone
- Tap "About phone"
- Tap "Build number" 7 times quickly until you see a message saying you are now a developer
- Go back to Settings → you will now see "Developer options"
- Open Developer options and enable "USB Debugging"
- Plug your phone into your PC via USB
- A popup will appear on your phone: "Allow USB Debugging?" → tap "Allow"
- Verify the connection by typing in CMD:
Your device should appear, for example:
adb devicesIf it saysList of devices attached ABC123XYZ deviceunauthorized, check your phone – you need to confirm the popup.
- Download
unfollow.pyfrom this page (top right → "Code" → "Download ZIP") - Extract the ZIP and place
unfollow.pyin the same folder as ADB
- Open TikTok on your phone
- Go to your Profile
- Tap "Following" to open your following list
- Keep this list open and your screen unlocked!
- Open CMD in the folder where
unfollow.pyis located - Type:
python unfollow.py - The script will start and show you everything you need to know!
| Key | Action |
|---|---|
| S | ⏸ Pause the script |
| P | ▶ Resume after pause |
| R | 🔄 Restart from current position |
| Q | ⏹ Quit the script cleanly |
Tip: Press S if you want to manually scroll on your phone, then press P to continue.
If no buttons are found, the script will also ask:
Try again? (y/n):
- Press y → tries again (useful if you scrolled manually)
- Press n → script exits
- Friends are NOT unfollowed – only one-sided follows are removed
- Don't do too many at once – take a break after 300-500 unfollows so TikTok doesn't temporarily block you
- Keep your screen unlocked – the script needs access to the screen
- Keep TikTok open – don't switch to other apps while the script is running
"adb devices" shows nothing: → Check your USB cable, try a different one, confirm the popup on your phone
Script can't find any buttons: → Make sure you are actually on the Following list and not on your profile page
TikTok stops responding: → Restart TikTok, navigate back to the Following list, press R to restart the script
"Python is not recognized": → Reinstall Python and make sure to check "Add to PATH" this time
This script is free to use for everyone. Use it at your own risk – automated tools violate TikTok's Terms of Service.