Last active
August 16, 2023 19:41
-
-
Save elijahbenizzy/909d1ef865c0e8c0f0b7db692dce98c1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def starcount_url(repositories: List[str]) -> Parallelizable[str]: | |
"""Generates API URLs for counting stars on a repo. We do this | |
so we can paginate requests later. | |
:param repo: The repository name in the format 'organization/repo' | |
:return: A URL to the GitHub API | |
""" | |
for repo in repositories: | |
yield f"https://api.github.com/repos/{repo}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment