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

Function test_extract_markdown

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

Source from the content-addressed store, hash-verified

12
13@pytest.mark.asyncio
14async def test_extract_markdown():
15 async with AsyncWebCrawler(verbose=True) as crawler:
16 url = "https://www.nbcnews.com/business"
17 result = await crawler.arun(url=url, bypass_cache=True)
18 assert result.success
19 assert result.markdown
20 assert isinstance(result.markdown, str)
21 assert len(result.markdown) > 0
22
23@pytest.mark.asyncio
24async def test_extract_cleaned_html():

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…