This project is a Python script that fetches and displays information about a specified GitHub user's repositories. It retrieves repository names, star counts, fork counts, and URLs, presenting this information in a colorful and organized manner in the terminal.
- Fetch repositories from a specified GitHub user.
- Display repository names, star counts, fork counts, and URLs.
- Color-coded terminal output for enhanced readability.
- Supports optional GitHub personal access token for accessing private repositories.
Before running the script, ensure you have the following installed:
- Python 3.x
pip
(Python package installer)
-
Clone the Repository
Clone this repository to your local machine using:
git clone https://github.com/yourusername/github-repo-fetcher.git cd github-repo-fetcher
-
Install required packages install the required Python packages using pip:
pip install requests tabulate colorama
-
Run the Script
python githubtool.py
When prompted, enter the GitHub username for whom you want to fetch repositories. You can also optionally provide a GitHub personal access token to access private repositories.
A GitHub personal access token is required if you want to access private repositories. You can create one by following these steps:
- Go to your GitHub account settings.
- Navigate to Developer settings > Personal access tokens.
- Click on Generate new token, select the scopes you need, and generate it.
- Copy the token and use it when prompted by the script.
This project is licensed under the MIT License - see the LICENSE file for details.
Contributions are welcome! Please feel free to submit a pull request or open an issue for suggestions or improvements.