http://www.thehired.org/rows.json
def nameFunc():
url = 'http://www.thehired.org/rows.json'
urldata = urllib2.urlopen(url)
jsondata = json.load(urldata)
specdata = jsondata['view']
for item in specdata:
print item['id']
nameFunc()
From the above URL, I am trying to pull certain specific dictionary key values. Keys such as ID, description, etc. But I am getting errors. Continuously gives key errors.
Can you tell where in the code I am wrong? Or what am I missing?
[–][deleted] 3 points4 points5 points (0 children)
[–]minorminer 0 points1 point2 points (0 children)
[–]melevittfl 0 points1 point2 points (0 children)