Hi I am a student and I have obtained this script from online.
I want to be able to find the symbol of a company. For example when I search Facebook, all the data related to facebook from that code is displayed. Please help I am an amateur at python and i am feeling really lost now
Hi sorry i was not aware of the tags needed when posting the python codes
I want to be able to find the symbol of a company. For example when I search Facebook, all the data related to facebook from that code is displayed. Please help I am an amateur at python and i am feeling really lost now

Hi sorry i was not aware of the tags needed when posting the python codes
def get_data(): try: # For Python 3.0 and later from urllib.request import urlopen except ImportError: # Fall back to Python 2's urllib2 from urllib2 import urlopen import json def get_jsonparsed_data(url): """ Receive the content of ``url``, parse it as JSON and return the object. Parameters ---------- url : str Returns ------- dict """ response = urlopen(url) data = response.read().decode("utf-8") return json.loads(data) url = ("https://financialmodelingprep.com/api/v3/company/stock/list?apikey=a76d61b58d4a34dd9b8a260033a24b57") print(get_jsonparsed_data(URL))