mirror of
https://github.com/NanmiCoder/MediaCrawler.git
synced 2026-04-21 11:17:38 +08:00
@@ -55,7 +55,7 @@ CUSTOM_BROWSER_PATH = ""
|
||||
CDP_HEADLESS = False
|
||||
|
||||
# 浏览器启动超时时间(秒)
|
||||
BROWSER_LAUNCH_TIMEOUT = 30
|
||||
BROWSER_LAUNCH_TIMEOUT = 60
|
||||
|
||||
# 是否在程序结束时自动关闭浏览器
|
||||
# 设置为False可以保持浏览器运行,便于调试
|
||||
|
||||
@@ -42,4 +42,19 @@ SQLITE_DB_PATH = os.path.join(os.path.dirname(os.path.dirname(__file__)), "datab
|
||||
|
||||
sqlite_db_config = {
|
||||
"db_path": SQLITE_DB_PATH
|
||||
}
|
||||
|
||||
# mongodb config
|
||||
MONGODB_HOST = os.getenv("MONGODB_HOST", "localhost")
|
||||
MONGODB_PORT = os.getenv("MONGODB_PORT", 27017)
|
||||
MONGODB_USER = os.getenv("MONGODB_USER", "")
|
||||
MONGODB_PWD = os.getenv("MONGODB_PWD", "")
|
||||
MONGODB_DB_NAME = os.getenv("MONGODB_DB_NAME", "media_crawler")
|
||||
|
||||
mongodb_config = {
|
||||
"host": MONGODB_HOST,
|
||||
"port": int(MONGODB_PORT),
|
||||
"user": MONGODB_USER,
|
||||
"password": MONGODB_PWD,
|
||||
"db_name": MONGODB_DB_NAME,
|
||||
}
|
||||
Reference in New Issue
Block a user