From 91a60d9f3d4107df334edbbc42f7ef52c4e57706 Mon Sep 17 00:00:00 2001 From: Diana Huang Date: Sun, 12 Apr 2015 13:44:32 -0400 Subject: [PATCH] Remove references to the `sel` object in shell.rst The current documentation has references to the deprecated `sel` when interacting with the shell. I've removed them and replaced uses of `sel.xpath` with `response.xpath` instead. --- docs/topics/shell.rst | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/docs/topics/shell.rst b/docs/topics/shell.rst index 5c1cfbd47..8fce0cea1 100644 --- a/docs/topics/shell.rst +++ b/docs/topics/shell.rst @@ -85,9 +85,6 @@ Those objects are: * ``response`` - a :class:`~scrapy.http.Response` object containing the last fetched page - * ``sel`` - a :class:`~scrapy.selector.Selector` object constructed - with the last response fetched - * ``settings`` - the current :ref:`Scrapy settings ` Example of shell session @@ -117,7 +114,6 @@ all start with the ``[s]`` prefix):: [s] item {} [s] request [s] response <200 http://scrapy.org> - [s] sel \n \n >> response.xpath("//h1/text()").extract()[0] + u'Meet Scrapy' >>> fetch("http://slashdot.org") [s] Available Scrapy objects: @@ -138,7 +134,6 @@ After that, we can start playing with the objects:: [s] item {} [s] request [s] response <200 http://slashdot.org> - [s] sel \n\n\n\n\n\n