DOC mention .attrib in the tutorial

This commit is contained in:
Mikhail Korobov 2018-08-22 04:25:43 +05:00
parent 12e42bbe06
commit afce9716fa
1 changed files with 6 additions and 0 deletions

View File

@ -520,6 +520,12 @@ like this::
>>> response.css('li.next a::attr(href)').get()
'/page/2/'
There is also an ``attrib`` property available
(see :ref:`selecting-attributes` for more)::
>>> response.css('li.next a').attrib['href']
'/page/2'
Let's see now our spider modified to recursively follow the link to the next
page, extracting data from it::