open shell in scrapy spider code example
Example: scrapy spider shell from spider
from scrapy.shell import inspect_response
def parse_details(self, response, item=None):
if item:
# populate more `item` fields
return item
else:
inspect_response(response, self)