ValueRaider

Results 898 comments of ValueRaider

Run this, what happens? ``` from yfinance import utils as yfu tz1 = yf.Ticker("^GSPC")._fetch_ticker_tz(debug_mode=True, proxy=proxy, timeout=10) print("tz1 =", tz1) tz2 = yfu.get_tz_cache().lookup("^GSPC") print("tz2 =", tz2) print("tz2 valid =", yfu.is_valid_timezone(tz2) tz3...

@chrisvil Interesting, `_fetch_ticker_tz()` should always return timezone if ticker valid. 1. I edited my code, can you run 3rd print? 2. Debug `_fetch_ticker_tz()` and see what Yahoo returns, specifically this...

Yes works fine for me. Which makes debugging this tricky, because you need to help investigate.

`get_data_yahoo` doesn't do anything except call `yfinance.download` directly. Proof: `pdr.get_data_yahoo == yf.download` = True So try with `yf.download()` Also if either of you can dig into the `yfinance` source code...

``` df6 = pdr.get_data_yahoo(... ``` `pandas-datareader` is an entirely different project

This could be implemented easily with e.g. `yf.set_custom_header(...)`, storing internally in a global variable for use later. Or maybe there is a better way If someone implements and submits a...

Options: - stop spamming - [fetcher smarter](https://github.com/ranaroussi/yfinance#smarter-scraping) - [yfinance_cache](https://github.com/ValueRaider/yfinance-cache)

Latest version has timeout, can someone confirm problem gone.

As only you have requested this, best if you implement outside `yfinance` to minimise code bloat.