Scrapy, a fast high-level web crawling & scraping framework for Python.
fixed LogStats extension, which got broken after a wrong merge before the 0.16 release
Pablo Hoffmanb01be8619d85
diff --git a/scrapy/contrib/logstats.py b/scrapy/contrib/logstats.pyindex 47b762b07..dd61721ca 100644--- a/scrapy/contrib/logstats.py+++ b/scrapy/contrib/logstats.py@@ -21,7 +21,7 @@ class LogStats(object):@classmethoddef from_crawler(cls, crawler):- interval = settings.getfloat('LOGSTATS_INTERVAL')+ interval = crawler.settings.getfloat('LOGSTATS_INTERVAL')if not interval:raise NotConfiguredo = cls(interval)@@ -33,13 +33,6 @@ class LogStats(object):crawler.signals.connect(o.engine_stopped, signal=signals.engine_stopped)return o- @classmethod- def from_crawler(cls, crawler):- interval = crawler.settings.getfloat('LOGSTATS_INTERVAL')- if not interval:- raise NotConfigured- return cls(interval)-def item_scraped(self, spider):self.slots[spider].items += 1