Using the Undetected Browser Mode with the Docker Job Queue API #1921
Replies: 1 comment
|
Not as shipped undetected mode is a constructor argument and not a config field
self.adapter = browser_adapter or PlaywrightAdapter()so the only way in is the python path from AsyncWebCrawler(crawler_strategy=AsyncPlaywrightCrawlerStrategy(browser_config=cfg, browser_adapter=UndetectedAdapter()))the server never goes through that crawler = AsyncWebCrawler(config=cfg, thread_safe=False)
what you can do over the wire {"browser_config": {"type": "BrowserConfig", "params": {"enable_stealth": true}}}that is playwright-stealth on a normal chromium attaching to your own patchright browser is blocked too so for real undetected behind the job queue you patch your own image # deploy/docker/crawler_pool.py:113
crawler = AsyncWebCrawler(
config=cfg,
crawler_strategy=AsyncPlaywrightCrawlerStrategy(
browser_config=cfg, browser_adapter=UndetectedAdapter()
),
thread_safe=False,
)that makes every pooled browser undetected |
Uh oh!
There was an error while loading. Please reload this page.
Is it possible to use the Undetected Browser Mode with the Docker Job Queue API?
All reactions