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

Function print_result

docs/examples/quickstart_sync.py:19–27  ·  view source on GitHub ↗
(result)

Source from the content-addressed store, hash-verified

17 return crawler
18
19def print_result(result):
20 # Print each key in one line and just the first 10 characters of each one's value and three dots
21 console.print(f"\t[bold]Result:[/bold]")
22 for key, value in result.model_dump().items():
23 if isinstance(value, str) and value:
24 console.print(f"\t{key}: [green]{value[:20]}...[/green]")
25 if result.extracted_content:
26 items = json.loads(result.extracted_content)
27 print(f"\t[bold]{len(items)} blocks is extracted![/bold]")
28
29
30def cprint(message, press_any_key=False):

Callers 12

basic_usageFunction · 0.85
basic_usage_some_paramsFunction · 0.85
screenshot_usageFunction · 0.85
understanding_parametersFunction · 0.85
add_chunking_strategyFunction · 0.85
add_extraction_strategyFunction · 0.85
targeted_extractionFunction · 0.85
interactive_extractionFunction · 0.85
multiple_scripFunction · 0.85
using_crawler_hooksFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…