From 833efbfcbdeea43f73d59ce222a12384ba8fff82 Mon Sep 17 00:00:00 2001 From: Robert Weindl Date: Wed, 2 Sep 2015 17:26:14 +0200 Subject: [PATCH] Update tutorial.rst Add missing "scrapy." prefix. --- docs/intro/tutorial.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/intro/tutorial.rst b/docs/intro/tutorial.rst index 45d1f9b29..dce165cf4 100644 --- a/docs/intro/tutorial.rst +++ b/docs/intro/tutorial.rst @@ -498,7 +498,7 @@ for it:: next_page = response.css("ul.navigation > li.next-page > a::attr('href')") if next_page: url = response.urljoin(next_page[0].extract()) - yield Request(url, self.parse_articles_follow_next_page) + yield scrapy.Request(url, self.parse_articles_follow_next_page) This creates a sort of loop, following all the links to the next page until it doesn't find one -- handy for crawling blogs, forums and other sites with