mirror of
https://github.com/NanmiCoder/MediaCrawler.git
synced 2026-10-10 08:20:55 +08:00
refactor: 更新各平台store模块初始化以支持SQLite
- 更新 store/bilibili/__init__.py 文件,导入SQLite存储实现类和相关模块 - 更新 store/douyin/__init__.py 文件,集成抖音平台的SQLite数据存储接口 - 更新 store/kuaishou/__init__.py 文件,添加快手平台SQLite存储模块的导入声明 - 更新 store/tieba/__init__.py 文件,引入贴吧平台SQLite数据库操作模块 - 更新 store/weibo/__init__.py 文件,整合微博平台SQLite存储功能模块 - 更新 store/xhs/__init__.py 文件,导入小红书平台SQLite数据存储实现 - 更新 store/zhihu/__init__.py 文件,集成知乎平台SQLite数据库存储模块
This commit is contained in:
@@ -25,7 +25,8 @@ class KuaishouStoreFactory:
|
||||
STORES = {
|
||||
"csv": KuaishouCsvStoreImplement,
|
||||
"db": KuaishouDbStoreImplement,
|
||||
"json": KuaishouJsonStoreImplement
|
||||
"json": KuaishouJsonStoreImplement,
|
||||
"sqlite": KuaishouSqliteStoreImplement
|
||||
}
|
||||
|
||||
@staticmethod
|
||||
@@ -33,7 +34,7 @@ class KuaishouStoreFactory:
|
||||
store_class = KuaishouStoreFactory.STORES.get(config.SAVE_DATA_OPTION)
|
||||
if not store_class:
|
||||
raise ValueError(
|
||||
"[KuaishouStoreFactory.create_store] Invalid save option only supported csv or db or json ...")
|
||||
"[KuaishouStoreFactory.create_store] Invalid save option only supported csv or db or json or sqlite ...")
|
||||
return store_class()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user