🚀 Automate your GitHub networking with smart follow/unfollow scripts!
This repository contains two powerful Python scripts to help you manage your GitHub following list:
- 🎯
github_smart_follow.py
: Automatically find and follow relevant developers - 🔄
github_unfollow.py
: Unfollow users who don't follow you back
Click to expand
- 🐍 Python 3.6 or higher
- 📦 Required library:
pip install requests
- 🔑 GitHub Personal Access Token:
- Go to GitHub Settings → Developer Settings → Personal Access Tokens → Tokens (classic)
- Generate a new token with
user
andfollow
permissions - Save the token somewhere safe (you'll only see it once)
Find and follow developers matching your interests!
- 📊 Data Science
- 🧠 Machine Learning
- 🌐 Web Development
- 📈 Data Analysis
- 🐍 Python Development
- 💻 JavaScript Development
- 🔧 Full Stack Development
- 🤖 AI Engineering
- 🔍 Finds active users (active in the last month)
- 🎯 Avoids following users you already follow
- ⚖️ Smart filtering based on follower/following ratios
- 🚀 Bulk following with optimal delays
- 🛡️ Respects GitHub API rate limits
- Run the script:
python github_smart_follow.py
- 🔑 Enter your GitHub token when prompted
- 📊 Specify how many users to follow (recommended: 50-200)
- 📋 Review the list of users found
- ✅ Confirm to start following them
Clean up your following list by removing non-followers!
- 📊 Shows detailed following/followers statistics
- 📋 Lists all users who don't follow you back
- ✅ Confirmation before any action
- 📝 Real-time feedback for each unfollow
- 📚 Handles large following lists
- Run the script:
python github_unfollow.py
- 🔑 Enter your GitHub token when prompted
- 📋 Review the list of non-followers
- ✅ Confirm to unfollow them
- 🚦 Rate Limits: GitHub API has rate limits. If hit, wait a few minutes.
- 🔒 Token Security: Never share your GitHub token!
- ⚡ Bulk Actions: Avoid following/unfollowing too many users at once.
- ⏱️ Delays: Built-in delays prevent API blocking.
Both scripts include robust error handling for:
- 🌐 Network errors
- 🚦 Rate limit exceeded
- 🔑 Invalid tokens
- 🔄 API response errors
All errors display clear, actionable messages.
Feel free to:
- 🍴 Fork this repository
- 🌟 Star it if you find it useful
- 🔧 Submit pull requests with improvements
This project is open source and available under the MIT License.
Made with ❤️ for the GitHub community