1
0
mirror of https://github.com/scrapy/scrapy.git synced 2025-02-22 18:23:40 +00:00

Update stats.rst

This commit is contained in:
Ralph Gutkowski 2016-01-15 19:25:56 +01:00
parent bb38400db5
commit 79147a61a7

View File

@ -47,7 +47,7 @@ Set stat value::
Increment stat value::
stats.inc_value('downloader/response_count')
stats.inc_value('custom_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('downloader/response_count')
8
>>> stats.get_value('custom_count')
1
Get all stats::
>>> stats.get_stats()
{'downloader/response_count': 1238, 'start_time': datetime.datetime(2009, 7, 14, 21, 47, 28, 977139)}
{'custom_count': 1, 'start_time': datetime.datetime(2009, 7, 14, 21, 47, 28, 977139)}
Available Stats Collectors
==========================