From db3e79b9c94b65b5bc68a3866c8c9fad7e37635b Mon Sep 17 00:00:00 2001 From: JustAnotherArchivist Date: Thu, 1 Apr 2021 03:49:23 +0000 Subject: [PATCH] Print repository URLs instead of names --- github-list-repos | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/github-list-repos b/github-list-repos index 7b9ddd9..383ee0e 100755 --- a/github-list-repos +++ b/github-list-repos @@ -28,7 +28,7 @@ for user in users: page = 1 while True: for m in re.finditer(r']*\s)?data-hovercard-url="/([^/>"]+/[^/>"]+)/hovercard"', r.text): - print(m.group(1)) + print(f'https://github.com/{m.group(1)}') if '"]+)" itemprop="name codeRepository"(\s[^>]*)?>', r.text): - print(m.group(1)) + print(f'https://github.com/{m.group(1)}') if not (m := re.search(r']*\s)?href="https://github\.com/[^/?"]+\?after=([^&]+)&tab=repositories"(?:\s[^>]*)?>', r.text)): # End of pagination break