Skip to content

Instantly share code, notes, and snippets.

Created February 12, 2017 15:39
  • Star 9 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
Bulk clone github repositories (including private)
import requests
import json
import subprocess
r = requests.get("" + GITHUB_ORGANIZATION + "/repos?per_page=200&access_token=" + ACCESS_TOKEN)
data = json.loads(r.text)
for repo in data:
print repo['full_name']
p = subprocess.Popen(["git","clone", repo['clone_url']], cwd=CLONE_DIR)
Copy link

hi this looks great but when i try to run on windows the script just exits hgaving done nothing - any help greatly appreciated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment