Scrapy, a fast high-level web crawling & scraping framework for Python.
Populate spider variable when using shell.inspect_response
Eugenio Lacuesta793b2376f83c
diff --git a/scrapy/shell.py b/scrapy/shell.pyindex 6f94635a1..80b625633 100644--- a/scrapy/shell.py+++ b/scrapy/shell.py@@ -164,7 +164,7 @@ class Shell(object):def inspect_response(response, spider):"""Open a shell to inspect the given response"""- Shell(spider.crawler).start(response=response)+ Shell(spider.crawler).start(response=response, spider=spider)def _request_deferred(request):