Stealthy fetcher mode triggers unwanted ad/analytics requests impacting proxy usage #128
-
|
When loading a page in stealthy fetcher mode, the request unexpectedly triggers dozens of additional calls to ad networks, analytics trackers, and third‑party resources. Question: |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
|
Hi mate, is playing around with |
Beta Was this translation helpful? Give feedback.
-
|
Use request interception in tools like Puppeteer or Playwright to whitelist only the target domain and abort anything matching ad/analytics patterns (e.g., Google Analytics, DoubleClick). You can also add proxy-side rules (like in mitmproxy) to block known tracker domains so only first-party traffic goes through and your proxy usage stays clean. |
Beta Was this translation helpful? Give feedback.
Hey @rubiagul280
Before trying complicated solutions, can you try the beta of the next version and let me know if it resolves this issue for you?
Use this command to install
pip install "git+https://github.com/D4Vinci/Scrapling.git@dev#egg=scrapling[all]" -UThis update includes several changes, some of which aim to further optimize browser sessions. Like automatically preventing autoplay media, such as ads, from autoplaying as they do now.
The browser fetchers/sessions, such as
StealthyFetcher, now have a new argument calledblocked_domains, which takes a set of domain names (strings) and prevents requests to those domains. This will be very helpful with ads.Checkout the new readme for …