Skip to content

Instantly share code, notes, and snippets.

@sarahholderness
Created December 9, 2021 21:22
Show Gist options
  • Save sarahholderness/1e0303e19dc6b1593022b5ad6009a1d5 to your computer and use it in GitHub Desktop.
Save sarahholderness/1e0303e19dc6b1593022b5ad6009a1d5 to your computer and use it in GitHub Desktop.
Using Python Requests
import requests
response = requests.get('http://api.open-notify.org/astros.json')
json = response.json()
for person in json['people']:
print(person['name'])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment