I used python 3 to parse the daily close from Yahoo into EXCEL. However, the daily close shown on the web page screen cannot be extracted. Here is the link: "https://finance.yahoo.com/quote/%5EIXIC/history?p=%5EIXIC" How to download the close data on screen into excel?
url = 'https://finance.yahoo.com/quote/%5EIXIC/history?p=%5EIXIC'
response = requests.get(url)
open('index.csv', 'wb').write(response.content)
read_file = pd.read_csv (r'C:\index.csv')
read_file.to_excel (r'C:\index.xlsx', index = None, header=True)
Expected Output in EXCEL - Date in descending order as shown on screen : Nov 08, 2019, 8,422.67, 8,475.57, 8,405.89, 8,475.31, 8,475.31, 1,974,190,000
Nov 07, 2019, 8,455.11, 8,483.16, 8,415.87, 8,434.52, 8,434.52, 2,393,950,000
Nov 06, 2019, 8,426.57, 8,426.57, 8,379.33, 8,410.63, 8,410.63, 2,332,650,000
Nov 05, 2019, 8,446.62, 8,457.39, 8,421.05, 8,434.68, 8,434.68, 2,316,710,000
....