mirror of
https://github.com/NanmiCoder/MediaCrawler.git
synced 2026-06-06 18:07:26 +08:00
feat: 增加配置项支持自由选择数据是否保存到关系型数据库中
This commit is contained in:
9
config/db_config.py
Normal file
9
config/db_config.py
Normal file
@@ -0,0 +1,9 @@
|
||||
# redis config
|
||||
REDIS_DB_HOST = "redis://127.0.0.1" # your redis host
|
||||
REDIS_DB_PWD = "123456" # your redis password
|
||||
|
||||
# mysql config
|
||||
RELATION_DB_URL = "mysql://root:youdbpassword@localhost:3306/media_crawler"
|
||||
|
||||
# save data to database option
|
||||
IS_SAVED_DATABASED = True # if you want to save data to database, set True
|
||||
Reference in New Issue
Block a user