(
ip: str,
timeout: int,
json_output: bool = False,
)
| 561 | |
| 562 | |
| 563 | async def _handle_ip2location( |
| 564 | ip: str, |
| 565 | timeout: int, |
| 566 | json_output: bool = False, |
| 567 | ) -> None: |
| 568 | print(f"[*] IP2Location lookup: {ip}", file=sys.stderr) |
| 569 | result = await run_ip2location_osint(ip=ip, timeout_seconds=timeout) |
| 570 | if json_output: |
| 571 | _emit_json(format_tool_result("search_ip2location", ip, result)) |
| 572 | else: |
| 573 | _print_result(result) |
| 574 | |
| 575 | |
| 576 | async def _handle_multi( |
no test coverage detected