From bb38400db560a4d814ea6c12364404d6daa75da5 Mon Sep 17 00:00:00 2001 From: Ralph Gutkowski Date: Fri, 15 Jan 2016 19:00:58 +0100 Subject: [PATCH] Update Stats Collection documentation `pages_crawled` value doesn't exist. Replace it with `downloader/response_count` in order to avoid confusion. --- docs/topics/stats.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/topics/stats.rst b/docs/topics/stats.rst index 0837610d0..290fc065c 100644 --- a/docs/topics/stats.rst +++ b/docs/topics/stats.rst @@ -47,7 +47,7 @@ Set stat value:: Increment stat value:: - stats.inc_value('pages_crawled') + stats.inc_value('downloader/response_count') Set stat value only if greater than previous:: @@ -59,13 +59,13 @@ Set stat value only if lower than previous:: Get stat value:: - >>> stats.get_value('pages_crawled') + >>> stats.get_value('downloader/response_count') 8 Get all stats:: >>> stats.get_stats() - {'pages_crawled': 1238, 'start_time': datetime.datetime(2009, 7, 14, 21, 47, 28, 977139)} + {'downloader/response_count': 1238, 'start_time': datetime.datetime(2009, 7, 14, 21, 47, 28, 977139)} Available Stats Collectors ==========================