

def log(self, spider):
    items = self.stats.get_value('item_scraped_count', 0)
    pages = self.stats.get_value('response_received_count', 0)
    irate = ((items - self.itemsprev) * self.multiplier)
    prate = ((pages - self.pagesprev) * self.multiplier)
    (self.pagesprev, self.itemsprev) = (pages, items)
    msg = ('Crawled %d pages (at %d pages/min), scraped %d items (at %d items/min)' % (pages, prate, items, irate))
    log.spider_log(msg, spider=spider)

dataset/ETHPy150Open wcong/ants/ants/contrib/logstats.py LogStats.log/original