-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
scripts from the js_snippets folder are not installed via pip #348
Comments
Yes, I have also encountered this problem. The code in the provided colab notebook does not run, and this error is also reported. My local deployment of 0.4.1 is working fine. |
For now, I recommend downloading JS files from repo and manually copy to |
also @unclecode even after doing this the js_only argument is broken to use |
my problem was coming from this code block
` basically response.status fails because response is None so probably just need to handle that condition and return a 200 when the hook is not there |
me too |
Hey everyone please update to 0.4.22 @wwwrookie @requizm @blghtr @Udbhav8 @1933211129 |
@Udbhav8 I resolved the issue by putting it out in version 0.4.23, or 0.4.3, while collecting a few other issues and updating a patch. For |
Hi!
│ × Unexpected error in crawl_web at line 11 in load_js_script (.venv\lib\site- │
│ packages\crawl4ai\js_snippet_init.py): │
│ Error: Script update_image_dimensions not found in the folder │
│ C:\Users\Gamer\PycharmProjects\scraper.venv\Lib\site-packages\crawl4ai\js_snippet │
│ │
│ Code context: │
│ 6 current_script_path = os.path.dirname(os.path.realpath(file)) │
│ 7 # Get the path of the script to load │
│ 8 script_path = os.path.join(current_script_path, script_name + '.js') │
│ 9 # Check if the script exists │
│ 10 if not os.path.exists(script_path): │
│ 11 → raise ValueError(f"Script {script_name} not found in the folder {current_script_path}") │
│ 12 # Load the content of the script │
│ 13 with open(script_path, 'r') as f: │
│ 14 script_content = f.read() │
│ 15 return script_content
returned by quick start
The text was updated successfully, but these errors were encountered: