bugit - github repo bulk download
In [ ]:
from github import Github
import os
import random
import git
import getpass
import socket
In [ ]:
g = Github()
In [ ]:
gitlist = []
In [ ]:
def gitusr(gitn):
for repo in g.get_user(gitn).get_repos():
print repo.name
gitlist.append(repo.name)
In [ ]:
thehost = socket.gethostname()
In [ ]:
theuser = getpass.getuser()
In [ ]:
theuser
In [ ]:
gitusr('wcmckee')
In [ ]:
%%bash
./job.sh
In [ ]:
os.mkdir('/home/' + theuser + '/github')
In [ ]:
os.chdir('/home/' + theuser + '/github')
In [ ]:
for gi in gitlist:
print gi
git.Git().clone('https://github.com/wcmckee/' + gi)
In [ ]:
git.
In [ ]:
import git
git.Git().clone("https://github.com/wcmckee/pyatakl")
In [ ]:
git.Blob()