Sunday, 17 July 2016

Listing and downloading files from github repo using PyGithub

So far I got this:

from github import Github
g = Github("user","password")
repos = g.get_user().get_repos()
for repo in repos:
           ???

What do I do now? I want to list all the files of the repos, the same way ls lists files in Linux. How do I do that?

Also, is there any command to download a file from a Github given the path?



from Recent Questions - Stack Overflow http://ift.tt/29MIPkE
via https://ifttt.com/ IFTTT

No comments:

Post a Comment