Scrapy, a fast high-level web crawling & scraping framework for Python.
Converted sel.xpath() calls to response.xpath() in Extracting the data
Peter Bronez475766c73a4f
diff --git a/docs/intro/tutorial.rst b/docs/intro/tutorial.rstindex ad808316b..286a591ee 100644--- a/docs/intro/tutorial.rst+++ b/docs/intro/tutorial.rst@@ -315,19 +315,19 @@ is inside a ``<ul>`` element, in fact the *second* ``<ul>`` element.So we can select each ``<li>`` element belonging to the sites list with thiscode::- sel.xpath('//ul/li')+ response.xpath('//ul/li')And from them, the sites descriptions::- sel.xpath('//ul/li/text()').extract()+ response.xpath('//ul/li/text()').extract()The sites titles::- sel.xpath('//ul/li/a/text()').extract()+ response.xpath('//ul/li/a/text()').extract()And the sites links::- sel.xpath('//ul/li/a/@href').extract()+ response.xpath('//ul/li/a/@href').extract()As we've said before, each ``.xpath()`` call returns a list of selectors, so we canconcatenate further ``.xpath()`` calls to dig deeper into a node. We are going to use