fix: Include GoogleSearchCrawler script.js in package distribution

Fixes #1711

The GoogleSearchCrawler's script.js file was not included in the package
distribution, causing FileNotFoundError when using the crawler.

Added crawl4ai/crawlers/google_search/*.js to setuptools package-data
in pyproject.toml to ensure the JavaScript file is bundled with the package.

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Yurii Chukhlib
2026-01-17 11:15:30 +01:00
parent c85f56b085
commit ef8f0c6096

View File

@@ -86,7 +86,7 @@ crwl = "crawl4ai.cli:main"
packages = {find = {where = ["."], include = ["crawl4ai*"]}}
[tool.setuptools.package-data]
crawl4ai = ["js_snippet/*.js"]
crawl4ai = ["js_snippet/*.js", "crawlers/google_search/*.js"]
[tool.setuptools.dynamic]
version = {attr = "crawl4ai.__version__.__version__"}