modify user lookup to print user repo urls
This commit is contained in:
parent
2aa13bab46
commit
12c9f3a054
1 changed files with 4 additions and 1 deletions
|
@ -43,8 +43,11 @@ def main():
|
|||
|
||||
result = searcher.get_result()
|
||||
for item in result:
|
||||
# If users, print all user repo URLs
|
||||
if args.search_type == "users":
|
||||
print(item.login)
|
||||
user_repos = item.get_repos()
|
||||
for repo in user_repos:
|
||||
print(repo.html_url)
|
||||
else:
|
||||
print(item.html_url)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue