How to Solve NameError: name 'inspect_response' is not defined -- scrapy

Solution: Import the 'inspect_response' module

To Solve the error, add the following line to the top of your code.

from scrapy.shell import inspect_response

 

For more information:
Python scrapy inspect_response