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

Function test_word_count_threshold

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

Source from the content-addressed store, hash-verified

12
13@pytest.mark.asyncio
14async def test_word_count_threshold():
15 async with AsyncWebCrawler(verbose=True) as crawler:
16 url = "https://www.nbcnews.com/business"
17 result_no_threshold = await crawler.arun(url=url, word_count_threshold=0, bypass_cache=True)
18 result_with_threshold = await crawler.arun(url=url, word_count_threshold=50, bypass_cache=True)
19
20 assert len(result_no_threshold.markdown) > len(result_with_threshold.markdown)
21
22@pytest.mark.asyncio
23async def test_css_selector():

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…