Skip to content

Scrapy, a fast high-level web crawling & scraping framework for Python.

update

Randy Penc7d245b90b4e
diff --git a/docs/intro/tutorial.rst b/docs/intro/tutorial.rst
index 89671910a..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('span a::attr(href)').extract():
+ for href in response.css('.author+a::attr(href)').extract():
yield scrapy.Request(response.urljoin(href),
callback=self.parse_author)