I want to get all files (and sub-directories and the files in them) from a github repo. I do not want to use the git package as that requires me to have git installed (on windows, so that's not an auto thing).
Willing to use urllib or something else instead. I'm on python 2.
I am able to get a single file as from here < How to download and write a file from Github using Requests > with:
filename = getcwd() + '\\somefile.txt'
url = 'https://raw.github.com/kennethreitz/requests/master/README.rst'
r=requests.get(url)
with open(filename,'w+') as f:
f.write(r.content)
How do I copy the whole repo?