示例

The best way to learn is with examples, and Scrapy is no exception. 为此原因,有一个Scrapy示例项目名为quotesbot,你可以用来把玩和了解关于Scrapy的更多内容。它包含两个针对http://quotes.toscrape.com的Spider,一个使用CSS选择器,另一个使用XPath表达式。

quotesbot项目可以在https://github.com/scrapy/quotesbot访问。You can find more information about it in the project’s README.

如果你熟悉git,你可以checkout代码。否则你可以通过单击这里下载该项目为一个zip文件。