crawl4ai icon indicating copy to clipboard operation
crawl4ai copied to clipboard

[Bug]: Crawl4ai is not updated to the latest playwright-stealth release

Open charliedelta02 opened this issue 1 year ago • 1 comments

crawl4ai version

0.6.3

Expected Behavior

Crawl4AI should work with the latest version of playwright-stealth.

Current Behavior

The playwright-stealth package has been updated to version 2.0.0 and has significant changes to the input contract. If playwright-stealth is updated to the latest version, then Crawl4AI will through the following exception:

from crawl4ai import AsyncWebCrawler, BrowserConfig, CrawlerRunConfig
from .async_crawler_strategy import
from .browser_manager import BrowserManager
from playwright_stealth import StealthConfig
E   ImportError: cannot import name 'StealthConfig' from 'playwright_stealth' 

The latest version will only work with playwright-stealth version 1.0.6.

Is this reproducible?

Yes

Inputs Causing the Bug

- Settings used: Update playwright-stealth to version 2.0.0

Steps to Reproduce

1. Update playwright-stealth to version 2.0.0
2. Run crawl4ai script to observe the exception

Code snippets


OS

macOS, Linux

Python version

3.12

Browser

Chrome

Browser version

138.0.0.0

Error logs & Screenshots (if applicable)

from crawl4ai import AsyncWebCrawler, BrowserConfig, CrawlerRunConfig
from .async_crawler_strategy import
from .browser_manager import BrowserManager
from playwright_stealth import StealthConfig
E   ImportError: cannot import name 'StealthConfig' from 'playwright_stealth' 

charliedelta02 avatar Jul 06 '25 08:07 charliedelta02

same issue here

huaihaochuan avatar Jul 06 '25 20:07 huaihaochuan