tyx6661234/dsh-community-listening ↗★ 1
dsh-community-listening
社交评论挖掘与分析工具集:8 平台评论采集、平台搜索发现、语料落盘、情感/主题/去重分析、报告导出 适合做舆情或评论分析的用户;需配置平台凭据与采集参数。
Install
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:tyx6661234/dsh-community-listeningREADME
Read the full README ↗配置
在目标 profile 的插件配置中为 dsh-community-listening 添加 config。以下示例使用默认值;空字符串表示由环境、自动探测或会话目录决定。
- id: dsh-community-listening
name: dsh-community-listening
config:
bskPath: bsk
bskTimeoutMs: 120000
maxCollectConcurrency: 3
envPath: ""
autoLaunchChrome: true
chromePath: ""
chromeProfileDir: ""
corpusDir: ""
pacingStateFile: ""
bilibiliCookie: ""
siliconflowKey: ""
siliconflowBaseUrl: ""
embeddingModel: ""
bypassProxyHosts: []
zhihuMaxAnswers: 50
zhihuMaxAnswerComments: 10
bilibiliMaxComments: 100
bilibiliMaxReplyComments: 20
| 字段 | 默认值与边界 | 说明 |
|---|---|---|
bskPath | bsk | BrowserSkill CLI 路径。 |
bskTimeoutMs | 120000,1000-600000 | 单次 BrowserSkill 命令超时,单位毫秒。 |
maxCollectConcurrency | 3,1-5 | 浏览器型采集的全局并发上限。 |
envPath | 空 | 可选 .env 文件;空值时只读取进程环境变量。 |
autoLaunchChrome | true | 无连接时是否尝试启动本机浏览器。 |
chromePath / chromeProfileDir | 空 | 覆盖自动探测的浏览器路径或 profile。 |
corpusDir | 空 | 语料根目录;也可用 DSH_INSIGHT_CORPUS_DIR 设置。 |
pacingStateFile | 空 | 节流状态文件;也可用 DSH_INSIGHT_PACING_STATE 设置。 |
bilibiliCookie | 空 | 可选 B 站 Cookie;也可用 BILIBILI_COOKIE 设置。不要提交到仓库。 |
siliconflowKey / siliconflowBaseUrl / embeddingModel | 空 | 可选 embedding 覆盖;未设置时读取环境或 envPath。 |
bypassProxyHosts | [] | 需要直连的额外域名后缀。 |
zhihuMaxAnswers | 50,1-200 | 知乎问题页最多处理的回答数。 |
zhihuMaxAnswerComments | 10,0-100 | 读取评论的知乎回答数量。 |
bilibiliMaxComments | 100,1-500 | B 站主评论与回复的合计上限。 |
bilibiliMaxReplyComments | 20,0-100 | 尝试读取楼中楼的主评论数量。 |
可选的 LLM 与 embedding 配置支持显式插件配置、进程环境变量和 envPath 中的变量。常用变量包括:
OPENCODE_API_BASE_URL
OPENCODE_API_KEY
OPENCODE_FREE_MODELS
LLM_BASE_URL
OPENAI_API_KEYS
LLM_MODEL_LITE
SILICONFLOW_API_KEY
SILICONFLOW_BASE_URL
EMBEDDING_MODEL
LLM 或 embedding 不可用时,插件会使用规则或关键词路径降级,并在结果中标记相关状态。凭据只应存储在本机受保护的配置或环境中,绝不能提交到 Git、issue 或日志。