Skip to content

Instantly share code, notes, and snippets.

@marciomazza
Created April 23, 2015 16:20
Show Gist options
  • Save marciomazza/85fab4468c721a63cb5a to your computer and use it in GitHub Desktop.
Save marciomazza/85fab4468c721a63cb5a to your computer and use it in GitHub Desktop.
import getpass
from github import Github
def main():
username = raw_input("User: ")
pw = getpass.getpass('Sua senha: ')
g = Github(username, pw)
me = g.get_user()
interlegis = g.get_organization('interlegis')
for r in interlegis.get_repos():
me.add_to_subscriptions(r)
if __name__ == '__main__':
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment