10
I've been programming an application that pulls information from an online API, and I need some help with it.
I'm using requests, and my current code is as follows
myData = requests.get('theapiwebsitehere.com/thispartisworking')
myRealData = myData.json()
x = myRealData['data']['playerStatSummaries']['playerStatSummarySet']['maxRating']
print x
I then get this error
myRealData = myData.json()
TypeError: 'NoneType' object is not callable
I want to be able to get to the variable maxRating, and print it out, but I can't seem to do that.
Thanks for your help.