Skip to content

Instantly share code, notes, and snippets.

@projectweekend
Created April 25, 2015 05:31
Show Gist options
  • Save projectweekend/be668501bde6ec02bee8 to your computer and use it in GitHub Desktop.
Save projectweekend/be668501bde6ec02bee8 to your computer and use it in GitHub Desktop.
Example Python script
import requests
response = requests.get('https://api.github.com/users/projectweekend')
data = response.json()
message = "{0} has {1} followers and {2} public repos."
print(message.format(data['login'], data['followers'], data['public_repos']))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment