Automate unfollowing GitHub users who don't follow you back using Python.
- 📊 Analyzes your GitHub followers and following
- 🔍 Detects non-reciprocal followers
- 🤖 Automates unfollow process
- 🔒 Secure GitHub token authentication
- ⚡ Rate limit protection
- Clone Repository
git clone https://github.com/0xmainak/github-unfollowers.git
cd github-unfollowers- Install Dependencies
pip install -r requirements.txt- Configure Authentication
- Create
.envfile:
GITHUB_USERNAME=your_username
GITHUB_TOKEN=your_token- Get token: GitHub Settings → Developer Settings → PAT (need
userscope)
⚠️ Important: Make sure to select theuserscope when creating your token. This permission is required for following/unfollowing operations.
Run:
python main.pyThe tool will:
- Get your network data
- Find non-mutual followers
- Process unfollows safely
- Python 3.6+ required
- Implements API rate limiting
- Secure credential handling
- Robust error management
MIT
Use responsibly within GitHub's terms of service.