Skip to content

Conversation

@YuriNachos
Copy link

Summary

  • Added GoogleSearchCrawler's script.js to package distribution
  • Fixes FileNotFoundError when using GoogleSearchCrawler from installed package

Fixes

Fixes #1711

Details

The crawl4ai/crawlers/google_search/script.js file was not included in the
Python package distribution, causing this error when using GoogleSearchCrawler:

```
FileNotFoundError: '/tmp/windmill/cache/python_3_12/crawl4ai==0.7.8/crawl4ai/crawlers/google_search/script.js'
```

Fixed by adding crawl4ai/crawlers/google_search/*.js to the setuptools
package-data configuration in pyproject.toml.

Test plan

  • Verified script.js exists in the source tree
  • Added to package-data pattern in pyproject.toml
  • File will now be included in wheel distributions

🤖 Generated with Claude Code

Fixes unclecode#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>
@YuriNachos YuriNachos force-pushed the fix/issue-1711-google-search-script-js branch from 5a9e61b to ef8f0c6 Compare January 17, 2026 11:14
@Ahmed-Tawfik94 Ahmed-Tawfik94 changed the base branch from main to develop January 27, 2026 06:53
@unclecode unclecode merged commit 9172581 into unclecode:develop Feb 1, 2026
@unclecode
Copy link
Owner

Merged into develop — thanks for the packaging fix. 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]: GoogleSearchCrawler cannot be used

2 participants