Last active
January 4, 2016 04:58
-
-
Save ET-CS/8571657 to your computer and use it in GitHub Desktop.
Python - get GitHub followers
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
import requests | |
import simplejson as json | |
def get_github_followers(): | |
url = "https://api.github.com/users/ET-CS" | |
j=json.loads((requests.get(url)).text) | |
return str(j['followers']) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment