Created
April 2, 2018 15:30
-
-
Save allen-munsch/f0fe34a469f01c9551f4291bbc90f0b2 to your computer and use it in GitHub Desktop.
clone github $USER 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
curl -s https://api.github.com/users/$USER/repos | python git_parse.py | xargs -I{} git clone {} |
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 fileinput | |
import json | |
lines = '' | |
for line in fileinput.input(): | |
lines += line | |
ok = json.loads(lines) | |
for repo in ok: | |
print(repo['clone_url']) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment