Skip to content

Instantly share code, notes, and snippets.

@0x4248
Created April 25, 2022 18:33
Show Gist options
  • Save 0x4248/3a2d81107f6c4e26caeb589263d403d0 to your computer and use it in GitHub Desktop.
Save 0x4248/3a2d81107f6c4e26caeb589263d403d0 to your computer and use it in GitHub Desktop.
This will install all the proavtive developmet repos
import urllib.request
import json
import os
def get_repositories(org):
url = 'https://api.github.com/orgs/' + org + '/repos'
request = urllib.request.Request(url)
response = urllib.request.urlopen(request)
data = json.loads(response.read().decode())
return [repo['name'] for repo in data]
if __name__ == "__main__":
if input("Do you want to install all the public Proactive Development repository's? [y/N]") == "y":
pass
else:
exit()
for i in get_repositories('proactive-development'):
os.system('git clone https://github.com/Proactive-Development/' + i)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment