diff --git a/docs/experimental/newitem.rst b/docs/experimental/newitem.rst index 7341db6e3..f5a5e93e2 100644 --- a/docs/experimental/newitem.rst +++ b/docs/experimental/newitem.rst @@ -29,7 +29,7 @@ Or you can use your own class to represent items, just be sure it inherits from More advanced items =================== -.. class:: scrapy.contrib_exp.newitem.Item(ScrapedItem) +.. class:: scrapy.contrib_exp.newitem.Item Scrapy provides :class:`~scrapy.contrib_exp.newitem.Item` (a subclass of :class:`~scrapy.item.ScrapedItem`) that works like a form with fields to store diff --git a/docs/ref/index.rst b/docs/ref/index.rst index 87d159efd..dad425d7f 100644 --- a/docs/ref/index.rst +++ b/docs/ref/index.rst @@ -20,3 +20,5 @@ This section documents the Scrapy |version| API. For more information see :ref:` extensions downloader-middleware link-extractors + +* :ref:`topics-stats-api` diff --git a/docs/topics/stats.rst b/docs/topics/stats.rst index a29f59c84..a0729e6d1 100644 --- a/docs/topics/stats.rst +++ b/docs/topics/stats.rst @@ -4,6 +4,9 @@ Stats Collector =============== +Overview +======== + Scrapy provides a convenient facility for collecting stats in the form of key/values, both globally and per spider/domain. It's called the Stats Collector, and it's a singleton which can be imported and used quickly, as @@ -75,6 +78,8 @@ Get all stats from a given domain:: >>> stats.get_stats('pages_crawled', domain='example.com') {'pages_crawled': 1238, 'start_time': datetime.datetime(2009, 7, 14, 21, 47, 28, 977139)} +.. _topics-stats-api: + Stats Collector API ===================