TedCha / yahoo_finance_scraper

Python application that allows you to pass in multiple stock tickers and receive an XLSX output for each company that includes Summary, Profile, Income Statement, Balance Sheet, Cash Flow, Valuation Measures, Financial Highlights, and Trading Information data.
MIT License
6 stars 3 forks source link

How to change from yearly to quarterly results? #2

Closed apavlo89 closed 3 years ago

apavlo89 commented 3 years ago

That would be super helpful! By the way, I love how easy it is to download data!

TedCha commented 3 years ago

@apavlo89 thanks for your kind words!

Currently there is no way to change between annually/quarterly as I'm using a makeshift HTTP request to retrieve the data from Yahoo Finance. The change from annual to quarter data on the website is via an AJAX request which I can't simulate via an HTTP endpoint. If you wanted to play around with it, you could use Selenium WebDriver to request a browser version of the website and then change to the quarterly data.

Currently I'm in the midst of graduating so I won't have time to update it for a while. As soon as I get the chance, I'll refactor it to be more flexible for different use cases.