-
-
Save Phoenix616/150dcbfa159458aaafa9c8cb6791994c 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
# 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