File: stats.py

package info (click to toggle)
python-scrapy 0.24.2-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 3,240 kB
  • ctags: 4,259
  • sloc: python: 21,170; xml: 199; makefile: 67; sh: 44
file content (7 lines) | stat: -rw-r--r-- 265 bytes parent folder | download
1
2
3
4
5
6
7
from scrapy.project import crawler
stats = crawler.stats

import warnings
from scrapy.exceptions import ScrapyDeprecationWarning
warnings.warn("Module `scrapy.stats` is deprecated, use `crawler.stats` attribute instead",
    ScrapyDeprecationWarning, stacklevel=2)