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]: Forward slashes of raw:// are not removed when converting raw URLs to HTML #686

Open
jl-martins opened this issue Feb 15, 2025 · 0 comments · May be fixed by #687
Open

[Bug]: Forward slashes of raw:// are not removed when converting raw URLs to HTML #686

jl-martins opened this issue Feb 15, 2025 · 0 comments · May be fixed by #687
Labels
🐞 Bug Something isn't working 🩺 Needs Triage Needs attention of maintainers

Comments

@jl-martins
Copy link

jl-martins commented Feb 15, 2025

crawl4ai version

0.4.248

Expected Behavior

The "raw://" prefix is completely removed from raw HTML

Current Behavior

The "//" part is not removed

Is this reproducible?

Yes

Inputs Causing the Bug

Any URL that starts with "raw://"

Steps to Reproduce

Run the following script:

import asyncio
from crawl4ai import AsyncWebCrawler, CrawlerRunConfig

async def main():
    async with AsyncWebCrawler() as crawler:
        result = await crawler.arun(
            url=f"raw://<html><body><h1>Heading</h1></body></html>",
            config=CrawlerRunConfig(),
        )
        print(result.markdown)

if __name__ == "__main__":
    asyncio.run(main())

OS

All

Python version

All

Browser

All

Browser version

All

@jl-martins jl-martins added 🐞 Bug Something isn't working 🩺 Needs Triage Needs attention of maintainers labels Feb 15, 2025
jl-martins added a commit to jl-martins/crawl4ai that referenced this issue Feb 15, 2025
@jl-martins jl-martins linked a pull request Feb 15, 2025 that will close this issue
6 tasks
@jl-martins jl-martins changed the title [Bug]: Forward slashes from "raw://" are not removed when converting raw URLs to HTML [Bug]: Forward slashes from raw:// are not removed when converting raw URLs to HTML Feb 15, 2025
@jl-martins jl-martins changed the title [Bug]: Forward slashes from raw:// are not removed when converting raw URLs to HTML [Bug]: Forward slashes of raw:// are not removed when converting raw URLs to HTML Feb 15, 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

Successfully merging a pull request may close this issue.

1 participant