├── README.md └── raffle.py /README.md: -------------------------------------------------------------------------------- 1 | Fork me to win a ticket to PyCon 2011! 2 | 3 | 4 | See [the blog post][pt] for details. 5 | 6 | [pt]: https://github.com/blog/799-win-a-ticket-to-pycon-us-2011 7 | -------------------------------------------------------------------------------- /raffle.py: -------------------------------------------------------------------------------- 1 | # pip install github2 2 | from github2.client import Github 3 | 4 | from random import choice 5 | 6 | github = Github() 7 | repos = github.repos.network('github/pycon2011') 8 | 9 | print "And the winners are..." 10 | print "*drumroll*" 11 | print "%s and %s!" % ( choice(repos)['owner'], choice(repos)['owner'] ) 12 | --------------------------------------------------------------------------------