Merge pull request #3812 from duketemon/master

[MRG+1] Tutorial: scrapy shell example should say "text" not "title" (#3807)
This commit is contained in:
Mikhail Korobov 2019-06-05 20:00:26 +05:00 committed by GitHub
commit 29bbbaa4dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -379,11 +379,11 @@ variable, so that we can run our CSS selectors directly on a particular quote::
>>> quote = response.css("div.quote")[0]
Now, let's extract ``title``, ``author`` and the ``tags`` from that quote
Now, let's extract ``text``, ``author`` and the ``tags`` from that quote
using the ``quote`` object we just created::
>>> title = quote.css("span.text::text").get()
>>> title
>>> text = quote.css("span.text::text").get()
>>> text
'“The world as we have created it is a process of our thinking. It cannot be changed without changing our thinking.”'
>>> author = quote.css("small.author::text").get()
>>> author