Amend note on --no-redirect option for shell tool

This commit is contained in:
Paul Tremberth 2016-12-19 17:51:30 +01:00
parent 70a69d2199
commit 140a57d7b0
1 changed files with 4 additions and 1 deletions

View File

@ -382,7 +382,9 @@ Supported options:
* ``-c code``: evaluate the code in the shell, print the result and exit
* ``--no-redirect``: do not follow HTTP 3xx redirects (default is to follow them)
* ``--no-redirect``: do not follow HTTP 3xx redirects (default is to follow them);
this only affects the URL you may pass as argument on the command line;
once you are inside the shell, ``fetch(url)`` will still follow HTTP redirects by default.
Usage example::
@ -397,6 +399,7 @@ Usage example::
(200, 'http://example.com/')
# you can disable this with --no-redirect
# (only for the URL passed as command line argument)
$ scrapy shell --no-redirect --nolog http://httpbin.org/redirect-to?url=http%3A%2F%2Fexample.com%2F -c '(response.status, response.url)'
(302, 'http://httpbin.org/redirect-to?url=http%3A%2F%2Fexample.com%2F')