I have been trying to find a way to get a list of repos starred in a user's github profile. Most of the suggested solutions include using github's API as follows:
https://api.github.com/users/$GITHUB_USER$/repos
Most solutions use the above API in various forms such as in this post. However, what it gives is the repos that a user owns, which is different than the repos starred by the user. For instance, Kenneth Reitz owns 94 repos, while he has starred 1906 repos. So, if you run the code given below in python, names_repos
will show you the repos he owns (94 in total) and not the ones he has starred (1906 in total):
import requests
import json
GITHUB_USER = "kennethreitz"
r = requests.get("https://api.github.com/users/" + GITHUB_USER + "/repos?per_page=100" )
names_repos = json.loads(r.text)
What I want instead is the list of starred repos (in a text or some other file), which can be seen here: https://github.com/stars/kennethreitz. However, it does not seem like the github API is able to provide that. I don't mind if there are any private repos that are not visible to others, but I would like to get a list of whatever repos I can see under the starred repos.