This is a simple CLI application written in Python that connects to the GitHub API and prints a list of repositories marked for portfolio use.
The purpose of the script is to quickly display only those GitHub projects that are meant to be presented publicly (e.g. to recruiters or on a portfolio website).
- Python 3.10+
requests
library- GitHub REST API v3
python-dotenv
(for reading.env
variables)
The script:
- Authenticates via a GitHub token stored in
.env
- Fetches all public repositories
- Filters only those that include the word
"portfolio"
in their description or topics - Prints them directly to the console
git clone https://github.com/Yushikuni/GitHub_Fetch.git
cd GitHub_Fetch
pip install -r requirements.txt
GITHUB_TOKEN=ghp_yourtokenhere
python3 github_fetch.py
✅ Output will look like this:
🔹 TheWitcherMechanic — C++ AI logic system
🔹 TODO_CLI — Console-based task manager in C++
🔹 GitHub_Fetch — This Python script
🧪 Example Use Case
You can use this script to:
🔹Dynamically update your portfolio content
🔹Show your most relevant projects during interviews
🔹List repositories in Node.js, React or static websites via file export (e.g. JSON, MD)
📦 TODOs future ideas
🔹Export list to JSON or Markdown
🔹Option to sort by stars or date
🔹GUI or web version
🔹Support for private repos