商品尺寸分析器,由关键词,分类器生成堆栈图。
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: