atreadw1492 / yahoo_fin

Scrape stock price history from new (Spring 2017) Yahoo Finance layout
MIT License
286 stars 125 forks source link

Not able to get financial statement for KLSE stocks #68

Open ricky-ge opened 2 years ago

ricky-ge commented 2 years ago

I had tried your API using 'get_balance_sheet' function for KLSE market stocks. However, it return the following messages:

Empty DataFrame Columns: [] Index: []

The ticker that I had tried was: 0097.KL 0208.KL

makiisthenes commented 2 years ago

From the code, it shows that it requests the URL https://finance.yahoo.com/quote/0097.KLbalance-sheet?p=0097.KL , when trying to get the financial statements for that ticker, which shows an error page. If you want to, extract data from https://finance.yahoo.com/quote/0097.KL?p=0097.KL&.tsrc=fin-srch by yourself.