MCPcopy
hub / github.com/unclecode/crawl4ai / test_extract_cleaned_html

Function test_extract_cleaned_html

tests/async/test_content_extraction.py:24–31  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

22
23@pytest.mark.asyncio
24async def test_extract_cleaned_html():
25 async with AsyncWebCrawler(verbose=True) as crawler:
26 url = "https://www.nbcnews.com/business"
27 result = await crawler.arun(url=url, bypass_cache=True)
28 assert result.success
29 assert result.cleaned_html
30 assert isinstance(result.cleaned_html, str)
31 assert len(result.cleaned_html) > 0
32
33@pytest.mark.asyncio
34async def test_extract_media():

Callers

nothing calls this directly

Calls 2

AsyncWebCrawlerClass · 0.90
arunMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…