Editing Community Data Science Course (Spring 2023)/Week 4 lecture notes
From CommunityData
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 97: | Line 97: | ||
import requests | import requests | ||
response = requests.get('http://nominatim.openstreetmap.org/', | response = requests.get('http://nominatim.openstreetmap.org/', {'q': '[bakery] near seattle wa', 'format': 'json'}) | ||
print(response.status_code) # 200 means it worked. | print(response.status_code) # 200 means it worked. | ||
data = response.json() | data = response.json() |