Created
April 25, 2022 18:33
-
-
Save 0x4248/3a2d81107f6c4e26caeb589263d403d0 to your computer and use it in GitHub Desktop.
This will install all the proavtive developmet repos
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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