Downloading Stock Data - professorf/data-analytics GitHub Wiki

  1. Find the stock symbols for at least two stocks. I'll use AMD (Advanced Micro Devices) and NVDA (Nvidia), my two favorite AI stocks in this example.

  2. Browse to: https://finance.yahoo.com/quote/STOCKSYMBOL/history, e.g., https://finance.yahoo.com/quote/AMD/history:

image

  1. Change the date dropdown to YTD:

image

  1. Carefully highlight the entire table including the headers:

image

  1. Copy and paste your highlight into a spreadsheet program like Excel or LibreOffice Calc:

image

  1. (Optional Data Cleaning) Change header labels to lower case and replace spaces with underscores:

image

  1. Save as a .CSV file into your analytics folder. If you have the option of saving in UTF-8 format, do that:

image

  1. Now do steps 1-6 for your second (and any other stock symbols):

image