So I'm attempting to learn how to search the output of trakt.tv's api and return only the information for a certain show. The json ouput is as follows
[
{
"title": "NCIS",
"year" : 2003,
"url": "blah"
},
{
"title": "Jeffersons",
"year" : 1902,
"url": "notreally"
}
]
:edited code for correct formatting.
I'm trying to find only the information for the title NCIS. and I've run into a problem getting the information. Possibly because everything i've seen deals with json.dump or json.loads and i'm trying to do this with data = json.load(urllib2.urlopen(url))
I basically only want to display show:0 if title matches NCIS. I'm just not sure how.