title: Scrapy SgmlLinkExtractor Stop after 10 Pages
body: <p>Currently my rule for Sgmllinkextractor is below:</p>
  
  <pre><code>     rules = (Rule (SgmlLinkExtractor(allow=("/boards/recentnews.aspx", ),restrict_xpaths=        ('//*[text()[contains(.,"Next")]]'))
          , callback="parse_start_url", follow= True),
          )
  </code></pre>
  
  <p>I want scrapy to stop crawling after it reaches page 10, so I thought it would be something like this:</p>
  
  <pre><code>     rules = (Rule (SgmlLinkExtractor(allow=("/boards/recentnews.aspx?page=\d*", ),restrict_xpaths=        ('//*[text()[contains(.,"Next")]]'))
          , callback="parse_start_url", follow= True),
          )
  </code></pre>
  
  <p>But I'm not sure how to do it, the rule applies for 1-10.</p>