Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
import requests
headers = {'accept':'application/json'}
response = requests.get('https://api.github.com/users/sandeepm96/repos', headers=headers)
assert response.status_code == 200
for repo in response.json():
print repo['name']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment