From 8b1704a87ef4440def15a43e603f110b50d60e21 Mon Sep 17 00:00:00 2001 From: Karim shoair Date: Tue, 10 Feb 2026 21:20:43 +0200 Subject: [PATCH] docs: use better import for `ProxyRotator` class --- docs/fetching/static.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/docs/fetching/static.md b/docs/fetching/static.md index cc02da5..adb6535 100644 --- a/docs/fetching/static.md +++ b/docs/fetching/static.md @@ -31,7 +31,7 @@ All methods for making requests here share some arguments, so let's discuss them - **proxy**: As the name implies, the proxy for this request is used to route all traffic (HTTP and HTTPS). The format accepted here is `http://username:password@localhost:8030`. - **proxy_auth**: HTTP basic auth for proxy, tuple of (username, password). - **proxies**: Dict of proxies to use. Format: `{"http": proxy_url, "https": proxy_url}`. -- **proxy_rotator**: A `ProxyRotator` instance for automatic proxy rotation. Cannot be combined with `proxy` or `proxies`. Import from `scrapling.engines.toolbelt import ProxyRotator`. +- **proxy_rotator**: A `ProxyRotator` instance for automatic proxy rotation. Cannot be combined with `proxy` or `proxies`. - **headers**: Headers to include in the request. Can override any header generated by the `stealthy_headers` argument - **max_redirects**: Maximum number of redirects. **Defaults to 30**, use -1 for unlimited. - **verify**: Whether to verify HTTPS certificates. **Defaults to True**. @@ -194,8 +194,7 @@ with FetcherSession( You can also use a `ProxyRotator` with `FetcherSession` for automatic proxy rotation across requests: ```python -from scrapling.fetchers import FetcherSession -from scrapling.engines.toolbelt import ProxyRotator +from scrapling.fetchers import FetcherSession, ProxyRotator rotator = ProxyRotator([ 'http://proxy1:8080',