Skip to content

Commit 4641b44

Browse files
committed
PCC38 GeoffRiley: Aborted attempt
Kept exceeding API limits at GitHub. Need a better understanding of the API before trying again.
1 parent f7e1ed4 commit 4641b44

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

38/GeoffRiley/git_check.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import argparse
2+
3+
from github import Github
4+
5+
parse = argparse.ArgumentParser()
6+
parse.add_argument('user', help="GitHub username")
7+
parse.add_argument('password', help="GiHub password")
8+
args = parse.parse_args()
9+
10+
gh = Github(login_or_token=args.user, password=args.password)
11+
user = gh.get_user()
12+
repos = user.get_repos()
13+
for repo in repos:
14+
print(f'{repo.name}')

0 commit comments

Comments
 (0)