Please find below the Python code.
import pandas_datareader.data as web
import datetime
import pandas as pd
start = datetime.datetime(2021, 1, 1)
end = datetime.datetime(2021, 1, 22)
ceva = web.DataReader('CEVA', 'yahoo', start, end)
google = web.DataReader('GOOGL', 'yahoo', start, end)
tesla = web.DataReader('TSLA', 'yahoo', start, end)
zom = web.DataReader('ZOM', 'yahoo', start, end)
This is an extract of what comes out (Jupiter Lab) from terminal:
gaierror Traceback (most recent call last)
C:SoftwareWinPythonWPy64-39100python-3.9.10.amd64libsite-packagesurllib3connection.py in _new_conn(self)
173 try:
–> 174 conn = connection.create_connection(
175 (self._dns_host, self.port), self.timeout, **extra_kw
C:SoftwareWinPythonWPy64-39100python-3.9.10.amd64libsite-packagesurllib3utilconnection.py in create_connection(address, timeout, source_address, socket_options)
71
—> 72 for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
73 af, socktype, proto, canonname, sa = res
C:SoftwareWinPythonWPy64-39100python-3.9.10.amd64libsocket.py in getaddrinfo(host, port, family, type, proto, flags)
953 addrlist = []
–> 954 for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
955 af, socktype, proto, canonname, sa = res
gaierror: [Errno 11001] getaddrinfo failed
etc, etc, etc…
jaco_6754 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.