How to scrape Yahoo Finance and extract fundamental stock market data using Python, LXML, and Pandas
I’ll use data from Mainfreight NZ (MFT.NZ) as an example.
The screenshot below shows what you can expect to get by following the steps in this blog post:
By following the steps in this blog post, you’ll also generate a DataFrame containing data from the Income Statement, and Cash Flow statement.
After creating Pandas DataFrames, I’ll show you how to export everything to an Excel file, so you’ll have output that looks something like this: