Skip to content

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

fix example code

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