In this video, I will teach you How to retreive data & repo of specific User in Github using Python & pyGithub

GET request to a specific URL and retrieve Github User the results:

import requests
from pprint import pprint

# github username
username = "x4nth055"
# url to request
url = f"https://api.github.com/users/{username}"
# make the request and return the json
user_data = requests.get(url).json()
# pretty print JSON data
pprint(user_data)

Let’s get all the public repositories of that user using PyGithub:

import base64
from github import Github
from pprint import pprint

# Github username
username = "x4nth055"
# pygithub object
g = Github()
# get that user by username
user = g.get_user(username)

for repo in user.get_repos():
    print(repo)

#python #github

How to use GitHub API using Python - Github API Tutorial
6.30 GEEK