Created
December 9, 2021 21:22
-
-
Save sarahholderness/1e0303e19dc6b1593022b5ad6009a1d5 to your computer and use it in GitHub Desktop.
Using Python Requests
This file contains 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 | |
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