Skip to content

Instantly share code, notes, and snippets.

View CosineP's full-sized avatar

Luna P-C CosineP

View GitHub Profile
@CosineP
CosineP / followings.py
Last active September 9, 2018 03:16 — forked from 0xa/followings.py
Mastodon followings management - fork details: old one broke with API changes; add cull followers with --followers
#!/usr/bin/env python3
"""
A script that go through your followings and unfollows dead accounts.
It notices empty accounts, accounts that were deleted locally and remotely,
and also cleans up dead instances if allowed to.
It has a cache so you can run it once without --unfollow to preview its
actions, and a second time that will skip all verified active profiles.
With colors and a nice progress bar with item count, %, and ETA.