Doiiars

MindSpider: deep-sentiment流程中自动安装MediaCrawler依赖

@@ -298,10 +298,13 @@ class MindSpider: @@ -298,10 +298,13 @@ class MindSpider:
298 test_mode: bool = False) -> bool: 298 test_mode: bool = False) -> bool:
299 """运行DeepSentimentCrawling模块""" 299 """运行DeepSentimentCrawling模块"""
300 logger.info("运行DeepSentimentCrawling模块...") 300 logger.info("运行DeepSentimentCrawling模块...")
301 - 301 +
302 # 自动检查并初始化数据库表 302 # 自动检查并初始化数据库表
303 if not self._ensure_database_ready(): 303 if not self._ensure_database_ready():
304 return False 304 return False
  305 +
  306 + # 自动安装MediaCrawler依赖
  307 + self._install_mediacrawler_dependencies()
305 308
306 if not target_date: 309 if not target_date:
307 target_date = date.today() 310 target_date = date.today()