新增RSS订阅收集器,支持从多个RSS源获取数据并写入MySQL数据库,同时添加了相关配置文件以支持项目部署和主题设置。
This commit is contained in:
@@ -234,7 +234,7 @@ class NewsAPIClient:
|
||||
|
||||
return new_last_update
|
||||
|
||||
# news_api.py 中的 write_to_database 方法可以保持简洁
|
||||
# rss_subscriptions.py 中的 write_to_database 方法可以保持简洁
|
||||
def write_to_database(self, df: pd.DataFrame) -> Dict[str, Any]:
|
||||
if df.empty:
|
||||
self.logger.info("没有新数据需要写入数据库")
|
||||
Reference in New Issue
Block a user