PyGithub Example, a Python library to use the Github API

PyGithub is a Python library to use the Github API.

''' Youtube Channel : Asim Code
PyGithub repository example in Python
https://youtu.be/95Qu8icyjAk
'''
from github import Github
my_git = Github("your_token")
for repo in my_git.get_user().get_repos():
    print(repo.name)

asim_code = my_git.get_repo("asimcode2050/Asim-Code-Youtube-Channel-Code")
contents = asim_code.get_contents("")
for content_file in contents:
    print(content_file)

Comments

No comments yet. Why don’t you start the discussion?

Leave a Reply

Your email address will not be published. Required fields are marked *