π¦ A simple yet powerful Python script to archive GitHub repositories (public and private), with automatic organization by programming language and metadata generation via info.json.
info.json file with metadata for each project (name, description, language, creation date, etc.).requests Python package (pip install requests)git clone https://github.com/TamerOnLine/Repos_Archive.git
cd Repos_Archive
python myarchive.py <github-username>
python myarchive.py <github-username> --token ghp_XXXXXXX
π Ensure the token has the following scopes:
repo,read:org(if needed).
Repos_Archive/
βββ Python/
β βββ flask-shop/
β βββ .git/
β βββ info.json
βββ JavaScript/
β βββ react-app/
...
Each archived repository will include:
info.json file like this:{
"name": "project-name",
"description": "short description",
"language": "Python",
"created_at": "2023-01-01T00:00:00Z",
"archived_at": "2025-06-01",
"github": "https://github.com/username/project-name"
}
Apache License 2.0 β see LICENSE for full details.
Contributions are welcome! Feel free to fork and submit a pull request.