Skip to content

Commit b99ca43

Browse files
committed
get python repo in GitHub which stars number greater than 10000
1 parent daa466f commit b99ca43

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

python_repos.py

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,17 @@
2121

2222
#研究第一个仓库
2323
repo_dict = repo_dicts[0]
24-
print(f"\nKeys: {len(repo_dict)}")
25-
for key in sorted(repo_dict.keys()):
26-
print(key)
24+
# print(f"\nKeys: {len(repo_dict)}")
25+
# for key in sorted(repo_dict.keys()):
26+
# print(key)
27+
28+
print("\nSelected information about each repository:")
29+
for repo_dict in repo_dicts:
30+
print(f"Name: {repo_dict['name']}")
31+
print(f"Owner: {repo_dict['owner']['login']}")
32+
print(f"Stars: {repo_dict['stargazers_count']}")
33+
print(f"Repository: {repo_dict['html_url']}")
34+
print(f"Created: {repo_dict['created_at']}")
35+
print(f"Updated: {repo_dict['updated_at']}")
36+
print(f"Description: {repo_dict['description']}")
2737

0 commit comments

Comments
 (0)