Skip to content

Conversation

@YuriNachos
Copy link

🎯 Summary

Fixes #1553

📝 Description

The codebase imports from playwright_stealth module (e.g., StealthConfig, stealth_async, stealth_sync with capital S) which is only available in the playwright-stealth package, not tf-playwright-stealth.

🔧 Changes

  • pyproject.toml: Changed tf-playwright-stealth>=1.1.0 to playwright-stealth>=2.0.0
  • requirements.txt: Changed tf-playwright-stealth>=1.1.0 to playwright-stealth>=2.0.0
  • tests/check_dependencies.py: Updated mapping from 'playwright_stealth': 'tf-playwright-stealth' to 'playwright_stealth': 'playwright-stealth'

✅ Why This Matters

  • tf-playwright-stealth only exports lowercase names: stealth, stealth_async, StealthConfig
  • playwright-stealth exports the correct names with capital S: Stealth, StealthConfig
  • The code imports from playwright_stealth import StealthConfig (capital S), which only exists in playwright-stealth

📚 Package Comparison

Package Exports crawl4ai needs crawl4ai declared
tf-playwright-stealth stealth (lowercase) ❌ Wrong ✅ This one (BUG!)
playwright-stealth Stealth (capital S) ✅ Correct ❌ Not declared

Co-Authored-By: Claude noreply@anthropic.com

Fixes unclecode#1553

The code imports from `playwright_stealth` module (e.g., StealthConfig,
stealth_async, stealth_sync with capital S) which is only available in
the `playwright-stealth` package, not `tf-playwright-stealth`.

Changed dependency from:
- tf-playwright-stealth>=1.1.0 (wrong package, exports lowercase names)
to:
- playwright-stealth>=2.0.0 (correct package, exports StealthConfig)

This fixes the mismatch between declared dependency and actual imports
in the codebase.

Co-Authored-By: Claude <noreply@anthropic.com>
@unclecode unclecode changed the base branch from main to develop February 1, 2026 05:01
@unclecode unclecode merged commit ccab926 into unclecode:develop Feb 1, 2026
@unclecode
Copy link
Owner

Merged into develop — thanks for catching the stale dependency. Will be in the next release, and we'll add you to CONTRIBUTORS.md.

unclecode added a commit that referenced this pull request Feb 1, 2026
- PR #1714: Replace tf-playwright-stealth with playwright-stealth
- PR #1721: Respect <base> tag in html2text for relative links
- PR #1719: Include GoogleSearchCrawler script.js in package data
- PR #1717: Allow local embeddings by removing OpenAI fallback
- Fix: Extract <base href> from raw HTML before head gets stripped
- Close duplicates: #1703, #1698, #1697, #1710, #1720
- Update CONTRIBUTORS.md and PR-TODOLIST.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Wrong dependency declared: tf-playwright-stealth only exports lowercase stealth, stealth_async, StealthConfig

2 participants