Merge pull request #1475 from rweindl/patch-1

Update tutorial.rst
This commit is contained in:
Mikhail Korobov 2015-09-02 20:33:57 +05:00
commit 2d688cd94d
1 changed files with 1 additions and 1 deletions

View File

@ -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