Skip to content

Instantly share code, notes, and snippets.

@JoaoCarabetta
Created September 20, 2021 13:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JoaoCarabetta/9a7f0d4670698e2cc4240babce066d5b to your computer and use it in GitHub Desktop.
Save JoaoCarabetta/9a7f0d4670698e2cc4240babce066d5b to your computer and use it in GitHub Desktop.
All unique GitHub repos that contains a string
from github import Github
from time import sleep
g = Github(token)
search_str = 'basedosdados'
repo = []
for i in g.search_code(search_str):
sleep(0.2)
repo.append(i)
set(['github.com/' + r.repository.full_name for r in repo])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment