it is possible to download GitHub repository to my local computer
Question: hello friends i just started to use GitHub and i just want to know it is
possible to download github repository to my local computer through by Using
GitHub Api or Api libraries (ie. python library " pygithub3" for Github api)


Answer: Using [`github3.py`](http://github3py.rtfd.org/) you can clone all of your
repositories (including forks and private repositories) by doing:

    
    
    import github3
    import subprocess
    
    
    g = github3.login('username', 'password')
    for repo in g.iter_repos(type='all'):
        subprocess.call(['git', 'clone', repo.clone_url])
    

If you're looking to clone an arbitrary repository you can do this:

    
    
    import github3
    import subprocess
    
    
    r = github3.repository('owner', 'repository_name')
    subprocess.call(['git', 'clone', repo.clone_url])
    

pygithub3 has not been actively developed in over a year. I would advise not
use it since it is unmaintained and missing a large number of the additions
GitHub has made to their API since then.

