Skip to content
This repository has been archived by the owner on Apr 21, 2018. It is now read-only.

Latest commit

 

History

History
32 lines (23 loc) · 799 Bytes

size_info_analyzer_with_time.rst

File metadata and controls

32 lines (23 loc) · 799 Bytes

Size Info Analyzer with Time

商品尺寸分析器,由关键词,分类器生成堆栈图。

用法

生成分析器实例

keywords = {'小米': ['米', 'mi'], '苹果': ['苹果', 'apple', 'iphone']}
classifiers = ['16G', '32G', '64G', '128G', '256G']
from taobao_crawler.analyzer.size_info_analyzer_with_time import SizeInfoAnalyzerWithTime
analyzer = SizeInfoAnalyzerWithTime(keywords, classifiers, db)

SizeInfoAnalyzerWithTime(keywords, classifiers, db) 中的 db 参见 :doc:`../utils/db`

生成饼状图

analyzer.run()

类属性

.. autoclass:: analyzer.size_info_analyzer_with_time.SizeInfoAnalyzerWithTime
    :members:
    :undoc-members:
    :show-inheritance: