in this code variable "r" consist of JSON array. how to access only the attribute company using the python code. for example, the result must be "Apple, Inc."
import pprint
import requests
MAC_URL = 'http://macvendors.co/api/%s'
r = requests.get(MAC_URL % 'BC:92:6B:A0:00:01')
pprint.pprint(r.json())
Result:
{'result': {'address': '1 Infinite Loop Cupertino CA US 95014 ',
'company': 'Apple, Inc.',
'mac_prefix': 'BC:92:6B'}}