mirror of
https://github.com/scrapy/scrapy.git
synced 2025-02-22 07:32:41 +00:00
Populate spider variable when using shell.inspect_response
This commit is contained in:
parent
dd5ab6c5fe
commit
793b2376f8
@ -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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user