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

Function basic_usage

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

Source from the content-addressed store, hash-verified

34 input()
35
36def basic_usage(crawler):
37 cprint("🛠️ [bold cyan]Basic Usage: Simply provide a URL and let Crawl4ai do the magic![/bold cyan]")
38 result = crawler.run(url="https://www.nbcnews.com/business", only_text = True)
39 cprint("[LOG] 📦 [bold yellow]Basic crawl result:[/bold yellow]")
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]")

Callers 1

mainFunction · 0.85

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…