Created
June 2, 2015 02:30
-
-
Save 0532/4991ebb2095169a7c42c to your computer and use it in GitHub Desktop.
sublime commit
This file contains hidden or 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
| # -*- coding: UTF-8 -*- | |
| import requests | |
| def getLang(user): | |
| re = requests.get('https://api.github.com/users/'+user+'/repos') | |
| if 200 == re.status_code: | |
| for k,v in enumerate(re.json()): | |
| print v['name'],v['language'] | |
| if __name__ == '__main__': | |
| getLang('zhanrui') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment