Skip to content

Commit ce9217c

Browse files
authored
Update crawler.py
add context to code
1 parent 47b78b9 commit ce9217c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

crawler.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,12 @@
3333
# Set for repos that have already been added to the list
3434
repo_set = set()
3535

36+
# Iterate over topics, search for matching repositories, and process unique ones
3637
for topic in topics:
3738
search_string = "org:{} topic:{}".format(organization, topic)
3839
all_repos = gh.search_repositories(search_string)
3940

41+
# For each repo in the search results, check if it's unique and add it to repo_set
4042
for repo in all_repos:
4143
if repo is not None and repo.repository.full_name not in repo_set:
4244
repo_set.add(repo.repository.full_name)

0 commit comments

Comments
 (0)