Skip to content

Download content from any organization including GitHub Classrooms.

Notifications You must be signed in to change notification settings

naghim/GitHub-Organization-Exporter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

GitHub Organization Exporter

Donwload any content from GitHub organizations that you have access to. This includes GitHub Classrooms as well.

How to use

  1. Enable fine-grained access tokens on the profile of the organization you would like to export.

  2. 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 following Repository permissions:

  • Contents: Read-only
  • Metadata: Read-only
  1. 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.

  1. Install the Python requirements:
python -m pip install -r requirements.txt
  1. Run the project and choose the organization to download all repositories from:
python download_github.py