Skip to content
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

[Bug]: screenshot does not work with raw/file url's #702

Open
ederuiter opened this issue Feb 17, 2025 · 0 comments
Open

[Bug]: screenshot does not work with raw/file url's #702

ederuiter opened this issue Feb 17, 2025 · 0 comments
Labels
🐞 Bug Something isn't working 🩺 Needs Triage Needs attention of maintainers

Comments

@ederuiter
Copy link

crawl4ai version

2025-feb-alpha-1

Expected Behavior

Ideally a screenshot should be generated (although I wouldn't be opposed to skipping this for raw/file urls as it currently skips the whole playwright step)

Current Behavior

It gives an error as the _generate_screenshot_from_html function is called but this is not defined.
See

screenshot_data = await self._generate_screenshot_from_html(html)
and
screenshot_data = await self._generate_screenshot_from_html(html)

Is this reproducible?

Yes

Inputs Causing the Bug

Any raw/file urls

Steps to Reproduce

Code snippets

OS

any

Python version

any

Browser

No response

Browser version

No response

Error logs & Screenshots (if applicable)

No response

@ederuiter ederuiter added 🐞 Bug Something isn't working 🩺 Needs Triage Needs attention of maintainers labels Feb 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 Bug Something isn't working 🩺 Needs Triage Needs attention of maintainers
Projects
None yet
Development

No branches or pull requests

1 participant