Skip to content

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

Open
@ederuiter

Description

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    🐞 BugSomething isn't working🩺 Needs TriageNeeds attention of maintainers

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions