Skip to content

Instantly share code, notes, and snippets.

@adam404
adam404 / org_repo_downloader.py
Created May 10, 2024 01:22
Facilitates the bulk downloading of repositories associated with a specified GitHub organization.
import os
import requests
def download_org_repo_exports(org_name, access_token):
# GitHub API endpoint for organization repositories
api_url = f"https://api.github.com/orgs/{org_name}/repos"
# Set the authentication headers
headers = {
"Authorization": f"Bearer {access_token}",