Skip to content

Scrapy, a fast high-level web crawling & scraping framework for Python.

Added warning to use double quotes in Windows for scrapy shell in shell.rst (#4450)

sakshamb2113bfeb2c8c13de
diff --git a/docs/topics/shell.rst b/docs/topics/shell.rst
index 8f7518b19..0f46f1c87 100644
--- a/docs/topics/shell.rst
+++ b/docs/topics/shell.rst
@@ -156,6 +156,17 @@ First, we launch the shell::
scrapy shell 'https://scrapy.org' --nolog
+.. note::
+
+ Remember to always enclose URLs in quotes when running the Scrapy shell from
+ the command line, otherwise URLs containing arguments (i.e. the ``&`` character)
+ will not work.
+
+ On Windows, use double quotes instead::
+
+ scrapy shell "https://scrapy.org" --nolog
+
+
Then, the shell fetches the URL (using the Scrapy downloader) and prints the
list of available objects and useful shortcuts (you'll notice that these lines
all start with the ``[s]`` prefix)::