mirror of
https://github.com/NanmiCoder/MediaCrawler.git
synced 2026-06-08 02:47:26 +08:00
fix_words
This commit is contained in:
@@ -46,7 +46,7 @@ HEADLESS = False
|
||||
SAVE_LOGIN_STATE = True
|
||||
|
||||
# 数据保存类型选项配置,支持三种类型:csv、db、json, 最好保存到DB,有排重的功能。
|
||||
SAVE_DATA_OPTION = "json" # csv or db or json
|
||||
SAVE_DATA_OPTION = "csv" # csv or db or json
|
||||
|
||||
# 用户浏览器缓存的浏览器文件配置
|
||||
USER_DATA_DIR = "%s_user_data_dir" # %s will be replaced by platform name
|
||||
@@ -73,7 +73,10 @@ ENABLE_GET_COMMENTS = True
|
||||
CRAWLER_MAX_COMMENTS_COUNT_SINGLENOTES = 10
|
||||
|
||||
# 爬取作者粉丝和关注列表数量控制(单作者)
|
||||
CRAWLER_MAX_FANS_COUNT_SINGLENOTES = 100
|
||||
CRAWLER_MAX_CONTACTS_COUNT_SINGLENOTES = 100
|
||||
|
||||
# 爬取作者动态粉丝和关注列表数量控制(单作者)
|
||||
CRAWLER_MAX_DYNAMICS_COUNT_SINGLENOTES = 50
|
||||
|
||||
# 是否开启爬二级评论模式, 默认不开启爬二级评论
|
||||
# 老版本项目使用了 db, 则需参考 schema/tables.sql line 287 增加表字段
|
||||
@@ -152,9 +155,9 @@ DY_CREATOR_ID_LIST = [
|
||||
BILI_CREATOR_ID_LIST = [
|
||||
# "20813884",
|
||||
"520819684",
|
||||
"472747194",
|
||||
"519872016",
|
||||
"372201438",
|
||||
# "472747194",
|
||||
# "519872016",
|
||||
# "372201438",
|
||||
# ........................
|
||||
]
|
||||
|
||||
|
||||
@@ -12,11 +12,16 @@
|
||||
import os
|
||||
|
||||
# mysql config
|
||||
RELATION_DB_PWD = os.getenv("RELATION_DB_PWD", "123456")
|
||||
RELATION_DB_USER = os.getenv("RELATION_DB_USER", "root")
|
||||
RELATION_DB_HOST = os.getenv("RELATION_DB_HOST", "localhost")
|
||||
RELATION_DB_PORT = os.getenv("RELATION_DB_PORT", 3306)
|
||||
RELATION_DB_NAME = os.getenv("RELATION_DB_NAME", "media_crawler")
|
||||
# RELATION_DB_PWD = os.getenv("RELATION_DB_PWD", "123456")
|
||||
# RELATION_DB_USER = os.getenv("RELATION_DB_USER", "root")
|
||||
# RELATION_DB_HOST = os.getenv("RELATION_DB_HOST", "localhost")
|
||||
# RELATION_DB_PORT = os.getenv("RELATION_DB_PORT", 3306)
|
||||
# RELATION_DB_NAME = os.getenv("RELATION_DB_NAME", "media_crawler")
|
||||
RELATION_DB_HOST = "47.94.233.47" # 替换为你的数据库域名/公网IP
|
||||
RELATION_DB_PORT = 3306 # 替换为你的数据库端口(通常3306)
|
||||
RELATION_DB_USER = "remote_user" # 替换为你的数据库用户名
|
||||
RELATION_DB_PWD = "314159" # 替换为你的数据库密码
|
||||
RELATION_DB_NAME = "Test" # 替换为你的数据库名称
|
||||
|
||||
|
||||
# redis config
|
||||
|
||||
Reference in New Issue
Block a user