Skip to content

🕷️ The BEST Web Scraping framework that handles everything from a single request to a full-scale crawl! Don't be shy, join here: https://discord.gg/EMgGbDceNQ and follow here for daily tips and tricks: https://x.com/Scrapling_dev

docs: use better import for `ProxyRotator` class

Karim shoair8b1704a87ef4
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',