MCPcopy
hub / github.com/scrapy/scrapy / _print_response

Method _print_response

scrapy/commands/view.py:24–28  ·  view source on GitHub ↗
(self, response: Response, opts: argparse.Namespace)

Source from the content-addressed store, hash-verified

22 parser.add_argument("--headers", help=argparse.SUPPRESS)
23
24 def _print_response(self, response: Response, opts: argparse.Namespace) -> None:
25 if not isinstance(response, TextResponse):
26 logger.error("Cannot view a non-text response.")
27 return
28 open_in_browser(response)

Callers

nothing calls this directly

Calls 2

open_in_browserFunction · 0.90
errorMethod · 0.80

Tested by

no test coverage detected