module documentation

Scrapy Shell

See documentation in docs/topics/shell.rst

Class ​Shell Undocumented
Function ​_request​_deferred Wrap a request inside a Deferred.
Function inspect​_response Open a shell to inspect the given response
def _request_deferred(request):

Wrap a request inside a Deferred.

This function is harmful, do not use it until you know what you are doing.

This returns a Deferred whose first pair of callbacks are the request callback and errback. The Deferred also triggers when the request callback/errback is executed (i.e. when the request is downloaded)

WARNING: Do not call request.replace() until after the deferred is called.

def inspect_response(response, spider):
Open a shell to inspect the given response