You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To install with optional dependencies, replace `optional` with: `nospam` for [caching-requests](#smarter-scraping), `repair` for [price repair](https://github.com/ranaroussi/yfinance/wiki/Price-repair), or `nospam,repair` for both:
@@ -155,9 +175,10 @@ data = yf.download("SPY AAPL", period="1mo")
155
175
156
176
### Smarter scraping
157
177
158
-
To use a custom `requests` session (for example to cache calls to the
159
-
API or customize the `User-agent` header), pass a `session=` argument to
160
-
the Ticker constructor.
178
+
Install the `nospam` packages for smarter scraping using `pip` (see [Installation](#installation)). These packages help cache calls such that Yahoo is not spammed with requests.
179
+
180
+
To use a custom `requests` session, pass a `session=` argument to
181
+
the Ticker constructor. This allows for caching calls to the API as well as a custom way to modify requests via the `User-agent` header.
Test new features by installing betas, provide feedback in [corresponding Discussion](https://github.com/ranaroussi/yfinance/discussions):
`yfinance` relies on community to investigate bugs and contribute code. Developer guide: https://github.com/ranaroussi/yfinance/discussions/1084
0 commit comments