Skip to content

Commit

Permalink
Merge pull request #1475 from rweindl/patch-1
Browse files Browse the repository at this point in the history
Update tutorial.rst
  • Loading branch information
kmike committed Sep 2, 2015
2 parents 7d6538c + fbc1f25 commit 2d688cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/intro/tutorial.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2d688cd

Please sign in to comment.