def inspect_response(response, spider):
 Shell(spider.crawler).start(response=response)

def inspect_response ( response , spider ) : Shell ( spider . crawler ) . start ( response = response )
open a shell to inspect the given response .