text_html_output_1.png
from datetime import datetime

import datetime

import yfinance as yf

ticker = 'SPY'
start_time = datetime(2020, 5, 1)
end_time = datetime(2023, 5, 1)
spy = yf.download(ticker, start=start_time, end=end_time)