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

Function basic_usage_some_params

docs/examples/quickstart_sync.py:42–46  ·  view source on GitHub ↗
(crawler)

Source from the content-addressed store, hash-verified

40 print_result(result)
41
42def basic_usage_some_params(crawler):
43 cprint("🛠️ [bold cyan]Basic Usage: Simply provide a URL and let Crawl4ai do the magic![/bold cyan]")
44 result = crawler.run(url="https://www.nbcnews.com/business", word_count_threshold=1, only_text = True)
45 cprint("[LOG] 📦 [bold yellow]Basic crawl result:[/bold yellow]")
46 print_result(result)
47
48def screenshot_usage(crawler):
49 cprint("\n📸 [bold cyan]Let's take a screenshot of the page![/bold cyan]")

Callers

nothing calls this directly

Calls 3

cprintFunction · 0.85
print_resultFunction · 0.85
runMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…