Created
July 31, 2016 15:15
-
-
Save devpruthvi/dd9aeab3dd05e2f7d684bd14d4cd50eb to your computer and use it in GitHub Desktop.
Gist to download all public and private gists
This file contains hidden or 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
#!/usr/bin/python | |
#Depends on: https://github.com/defunkt/gist and git | |
#install them first | |
#then run python clone-all-gists.py | |
import subprocess,re | |
gists = subprocess.check_output(['gist','-l']) | |
gists = re.findall('^.*com\/(.*?)(?:\s|$)',gists,re.M) | |
for gist in gists: | |
url = 'https://gist.github.com/%s.git' % gist | |
subprocess.call(['git','clone',url]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
it matches .com urls in descriptions too