Downloading Stock Data - professorf/data-analytics GitHub Wiki
-
Find the stock symbols for at least two stocks. I'll use
AMD(Advanced Micro Devices) andNVDA(Nvidia), my two favorite AI stocks in this example. -
Browse to: https://finance.yahoo.com/quote/STOCKSYMBOL/history, e.g., https://finance.yahoo.com/quote/AMD/history:
- Change the date dropdown to
YTD:
- Carefully highlight the entire table including the headers:
- Copy and paste your highlight into a spreadsheet program like Excel or LibreOffice Calc:
- (Optional Data Cleaning) Change header labels to lower case and replace spaces with underscores:
- Save as a .CSV file into your analytics folder. If you have the option of saving in UTF-8 format, do that:
- Now do steps 1-6 for your second (and any other stock symbols):