How can I get an GitHub users website (the one displayed on a users profile) with PyGithub (Github API v3)?
Asked
Active
Viewed 120 times
2 Answers
0
It is clearly in pygithub. html_url is a property of NamedUser. Below codes could get the user in the organization.
def get_user_html(user_name):
gh = Github(base_url=url, login_or_token=token)
org = gh.get_organization(org_name)
mems = org.get_members()
for mem in mems:
if mem.name == user_name:
print(mem.html_url)

qloveshmily
- 1,017
- 9
- 5
0
The website of user/organization profiles is accessible via NamedUser.blob
.

thinwybk
- 4,193
- 2
- 40
- 76