def print_response(self, resp): if not self.links: remove_links(resp) click.echo_via_pager(json.dumps(resp, indent=4))