add import to mysql function

This commit is contained in:
liushuming
2026-02-27 15:49:25 +08:00
parent c847287203
commit 0f6cd90bdf
3 changed files with 140 additions and 0 deletions

View File

@@ -14,3 +14,18 @@ STEP = 1000000
# 设为 None 或空列表 [] 表示运行全部线程
ACTIVE_THREADS = [7,8,9,10,11,12,13,14,15,16, 17, 18, 19, 36, 37, 38, 39, 40]
#ACTIVE_THREADS = [16, 17, 18, 19, 36, 37, 38, 39, 40,41,42,43,44]
# ===== 目标数据库(将抓取到的数据入库到 MySQL =====
# MySQL 连接配置
DB_HOST = '192.168.0.164'
DB_PORT = 3307
DB_USER = 'root'
DB_PASSWORD = 'myP#ssw0rd'
DB_NAME = 'xkw'
DB_TABLE = 'xkwsoftlist'
# 指定只处理哪些 sqlite db 文件(对应线程索引)
# 例如: [7,8,9] 表示处理 softlist_7.db, softlist_8.db, softlist_9.db
# 设为 None 或空列表 [] 表示处理所有存在的 softlist_*.db
PROCESS_DB_THREADS = [16, 17, 18, 19, 36, 37, 38, 39, 40] # 默认与 ACTIVE_THREADS 相同;可改为 None 或自定义列表