ValueRaider

Results 898 comments of ValueRaider

`parse_date` - why not just copy how other functions handle user date e.g.: ``` def _get_earnings_by_date(date, proxy=None): timezone = self._get_ticker_tz(debug_mode=False, proxy=proxy, timeout=10) timestamp = utils._parse_user_dt(date, timezone) url = EARNINGS_URL +...

Ignore timezone for now, `utils._parse_user_dt` is the important part, [it already splits out date parsing](https://github.com/ranaroussi/yfinance/blob/0c037ddd128f3ce5dee79ceb8a8571e5000fcd30/yfinance/utils.py#L291). Admittedly error handling could be added, but it handles any date-like value a user is...

Most of the diff changes aren't related to this feature, can you fix that? Rebase to `dev`, then revert the splitting code over lines. Makes review much easier.

@sonso-1 Correct, `size` is capped at 100. [See how `get_earnings_dates()` handles it](https://github.com/ranaroussi/yfinance/blob/b17ad32a47b1e0d27573db084ac349a9af4ad2e7/yfinance/base.py#L1625)

@sonso-1 No idea, all work here is voluntary.

@rickturner2001 Your idea sounds fine. `get_earnings_dates()` just keeps requesting the next page until Yahoo returns nothing, works fine.

@sonso-1 @WesNeu Do either of you want to help finish implementing this?

Start with `Ticker.earnings_dates`. Uses same Yahoo API but doesn't set the `day` argument. If you think `day` would improve then feel free to submit a pull request.

@mw66 Good suggestion. This works: ``` url = "https://finance.yahoo.com/calendar/earnings?day=2023-11-10" d = dat._data.cache_get(url) df = pd.read_html(d.text)[0] ```