(result)
| 17 | return crawler |
| 18 | |
| 19 | def 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 | |
| 30 | def cprint(message, press_any_key=False): |
no outgoing calls
no test coverage detected
searching dependent graphs…