Donwload any content from GitHub organizations that you have access to. This includes GitHub Classrooms as well.
-
Enable fine-grained access tokens on the profile of the organization you would like to export.
-
Create a GitHub personal access token on your account. Add access to the organization you would like to export, using
All repositories
repository access, and the followingRepository permissions
:
Contents
: Read-onlyMetadata
: Read-only
- Create a
github.json
file, containing the name of the organization and the token you've just created:
[
{
"token": "github_pat_AAA_BBB",
"organization": "student-organization"
}
]
You can create/add multiple organizations this way.
- Install the Python requirements:
python -m pip install -r requirements.txt
- Run the project and choose the organization to download all repositories from:
python download_github.py