Skip to content

A simple Bash script that checks your GitHub account to find users you follow who do not follow you back. Utilizes GitHub's API for seamless interaction and requires a personal access token for authentication.

License

Notifications You must be signed in to change notification settings

MadhushaPrasad/github-follow-checker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

GitHub Follow Checker

Overview

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.

Features

  • 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.

Prerequisites

  • 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

Usage

  1. Clone the Repository (if applicable):

    git clone https://github.com/yourusername/github-follow-checker.git
    cd github-follow-checker
  2. Make the Script Executable:

    chmod +x github-follow-checker.sh
  3. Run the Script:

    ./github-follow-checker.sh
  4. 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.
  5. Review the Output:

    • The script will display users you follow who do not follow you back, or inform you that all your followers reciprocate.

Important Notes

  • 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.

License

This project is licensed under the MIT license. See the LICENSE file for more details.

Author

Madhusha Prasad

About

A simple Bash script that checks your GitHub account to find users you follow who do not follow you back. Utilizes GitHub's API for seamless interaction and requires a personal access token for authentication.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages