Using Twitch's API I am trying to make the results from the JSON into an array (I think that's what it's called?) I get this come up in the console:
Error Raised: (<class 'KeyError'>, KeyError(0,), <traceback object at 0x04520DA0>)
And here's the code that defines it all
r = requests.get('https://api.twitch.tv/kraken/channels/runnerbeany'.format(query))
dat = r.json()
dat = dat[0]
data = []
data.append(dat['display_name'])
data.append(dat['followers'])
data.append(dat['game'])
data.append(dat['logo'])
data.append(dat['status'])
data.append(dat['url'])