Github-Repo-Downloader

πŸ”„ GitHub Repo Downloader

This is a simple Bash script to download all public repositories from any GitHub user. It uses the GitHub API and optionally supports authentication via personal access token (PAT) to avoid rate limits.


πŸš€ Features


πŸ› οΈ Requirements


πŸ“₯ Installation

  1. Clone the repository:

    git clone https://github.com/nemocyberworld/Github-Repo-Downloader.git
    
  2. Navigate into the project folder:

    cd Github-Repo-Downloader
    
  3. Make the script executable:

    chmod +x download_github_repos.sh
    
  4. Run the script:

    ./download_github_repos.sh
    

πŸ“Œ Usage

Just run the script and follow the prompts:

Enter GitHub username: johndoe
Enter GitHub token (optional, press Enter to skip):

All repositories will be downloaded into a folder named:

./johndoe-repos/

πŸ” GitHub Token (Optional)

To avoid GitHub’s rate limiting (60 unauthenticated API requests/hour), you can use a personal access token:

  1. Go to: https://github.com/settings/tokens
  2. Click β€œGenerate new token (classic)”
  3. Select the public_repo scope
  4. Copy and paste the token into the script when prompted

πŸ“¦ Example Output

Enter GitHub username: johndoe
Enter GitHub token (optional, press Enter to skip):
[*] Fetching repositories for user: johndoe
[+] Cloning https://github.com/johndoe/project-one.git
[+] Cloning https://github.com/johndoe/project-two.git
[βœ”] All public repositories for 'johndoe' downloaded.

πŸŽ“ Developed by Hacktolive Academy

This tool was created and maintained by Hacktolive Academy. We are committed to building open-source security tools and delivering real-world ethical hacking education.

πŸ‘‰ Visit us: https://hacktolive.com πŸ“’ Follow us: https://www.facebook.com/h4k2liv3


πŸ“ƒ License

This script is open-source and licensed under the MIT License.


πŸ™Œ Support Us

If you find this tool helpful, consider sharing it or supporting us through:

Stay curious. Stay ethical. Hack to learn. ✊