scrapy shell is a great tool for debugging an xpath expression, but is there any tool or method for debugging a rule in crawlspider? which means that I can know that the rule works as I wish.
My rules:
rules = ( Rule(SgmlLinkExtractor(allow=r'/search*',restrict_xpaths="//a[@id='pager_page_next']"), follow=False),
and it doesn't match the links I wanted, so how to debug any example?
source share