diff --git a/docs/intro/tutorial.rst b/docs/intro/tutorial.rst index 4f2736709..0fb2c0b86 100644 --- a/docs/intro/tutorial.rst +++ b/docs/intro/tutorial.rst @@ -564,7 +564,7 @@ this time for scraping author information:: def parse(self, response): # follow links to author pages - for href in response.css('.author a::attr(href)').extract(): + for href in response.css('.author+a::attr(href)').extract(): yield scrapy.Request(response.urljoin(href), callback=self.parse_author)