Skip to content

Instantly share code, notes, and snippets.

@Phoenix616
Created February 13, 2018 23:36
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 Phoenix616/150dcbfa159458aaafa9c8cb6791994c to your computer and use it in GitHub Desktop.
Save Phoenix616/150dcbfa159458aaafa9c8cb6791994c to your computer and use it in GitHub Desktop.
# Requires https://github.com/PyGithub/PyGithub
import sys
from github import Github
if len(sys.argv) < 2:
print "Invalid syntax, you have to specify a repository with " + sys.argv[0] + " <user/repo>"
quit()
g = Github("api-key", per_page=100)
repo = g.get_repo(sys.argv[1])
f = open(sys.argv[1].replace("/", "-", 1) + ".txt","w+")
for user in repo.get_stargazers():
print user.login
print >>f, user.login
f.close()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment