π 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