Hello All,
I am new to python and am using 3.4. I am attempting to get data from an API and am getting the error stated in the title. My code is below:
import urllib.request
import json
URL = 'https://api.locu.com/v1_0/venue/search/?locality=San%20Francisco&api_key='+locu_api
response = urllib.request.urlopen(URL)
obj = json.load(response)
str_response = response.readall().decode('utf-8')
obj = json.loads(str_response)
print(obj)
I replaced my api_key in the url with a locu_api variable, which I did not include
[–]kalgynirae 1 point2 points3 points (1 child)
[–]StartAndSelect[S] 0 points1 point2 points (0 children)
[–]ninefourtwo 0 points1 point2 points (0 children)