The GitHub Follow Checker is a simple Bash script that allows users to check their GitHub account to find users they follow who do not follow them back. It utilizes GitHub's API for seamless interaction and requires a personal access token for authentication.
- Reads GitHub username and personal access token from a file (
github.txt
). - Prompts the user for their credentials if the file does not exist or contains invalid data.
- Fetches the list of users you are following and those who follow you back.
- Identifies and lists users that you follow but who do not follow you back.
- Bash: The script is written for Bash and should run on any Unix-like operating system with Bash support.
- cURL: The script uses
curl
to make API requests to GitHub. - jq: This script requires
jq
for processing JSON data returned by the GitHub API. You can install it via package managers like Homebrew or APT:- For macOS:
brew install jq
- For Ubuntu/Debian:
sudo apt-get install jq
- For macOS:
-
Clone the Repository (if applicable):
git clone https://github.com/yourusername/github-follow-checker.git cd github-follow-checker
-
Make the Script Executable:
chmod +x github-follow-checker.sh
-
Run the Script:
./github-follow-checker.sh
-
Input Your Credentials:
- If
github.txt
exists, the script will read your GitHub username and personal access token from this file. - If the file does not exist or contains invalid data, you will be prompted to enter your GitHub username and personal access token. The script will then save these credentials to
github.txt
.
- If
-
Review the Output:
- The script will display users you follow who do not follow you back, or inform you that all your followers reciprocate.
- Personal Access Token: You must create a personal access token with the necessary permissions to access your follower and following information. You can create a token by following GitHub's documentation.
- Rate Limiting: Be aware that GitHub’s API has rate limits. If you make too many requests in a short period, you may be temporarily blocked.
This project is licensed under the MIT license. See the LICENSE file for more details.