JianHeShui/dsh-douyin ↗★ 0

dsh-douyin

Douyin toolkit for DeepSeek Harness: hot list, search, video reading with native vision frames, and a guarded Playwright DM/group driver — plus a local HTTP API. 适合需要通过AI检索、分析抖音视频及进行账号互动的用户。

Package
dsh-douyin
Compatibility
Unverified
Version
1.1.0
License
MIT
Last updated
Oct 23, 2026

Other repositories with this package name

Install

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:JianHeShui/dsh-douyin

配置

插件配置(cordis.patch.yml)

装好后不要重复 insert 同一个 id;在 profile 的 cordis.patch.yml 顶层加同 id 覆盖行:

- id: douyin
  name: dsh-douyin
  config:
    writesEnabled: false
    maxSearchPages: 2
    pythonPath: /opt/dsh-douyin/.venv/bin/python
    dataDir: /opt/dsh-douyin/data
    edgePath: /usr/bin/chromium
字段默认说明
enabledtrue关闭后不注册任何工具
writesEnabledfalse评论写操作总开关
toolEnabled全 true单工具开关:hot / search / video / user / status / login / verify / comment / publish
maxResults20单次返回上限,硬上限 20
maxSearchPages3单次搜索翻页上限,硬上限 3
hourlyRequestBudget60滚动 1 小时请求预算
pageDelayMinMs / pageDelayMaxMs3000 / 8000翻页抖动区间
callDelayMinMs / callDelayMaxMs1800 / 3200调用间隔区间
pythonPath空默认 /.venv/bin/python(Windows 为 Scripts\python.exe)
dataDir空默认 /data
edgePath空默认自动发现
logLevelinfosilent / error / info / debug

环境变量(HTTP 服务 / 独立脚本)

完整列表见 .env.example。常用:

变量默认说明
DOUYIN_DATA_DIR/data数据目录(cookie、profile、日志)
DOUYIN_PYTHON当前解释器装了 dy-cli 的解释器
DOUYIN_BROWSER自动发现浏览器可执行文件
DOUYIN_HEADLESS私信驱动 10 开窗口调试
DOUYIN_COOKIE_FILE/home/.dy/cookies/default.jsonstorage_state
DOUYIN_MEDIA_DIR/media成片 / 帧缓存
DOUYIN_HTTP_HOST / DOUYIN_HTTP_PORT127.0.0.1 / 7709监听地址
DOUYIN_IM_ALLOW_SEND未设置1 才允许真实发送
DOUYIN_IM_ALLOW_TO未设置发送白名单,逗号分隔
DOUYIN_IM_TIMEOUT180单次私信操作超时(秒)

插件配置(cordis.patch.yml)

装好后不要重复 insert 同一个 id;在 profile 的 cordis.patch.yml 顶层加同 id 覆盖行:

- id: douyin
  name: dsh-douyin
  config:
    writesEnabled: false
    maxSearchPages: 2
    pythonPath: /opt/dsh-douyin/.venv/bin/python
    dataDir: /opt/dsh-douyin/data
    edgePath: /usr/bin/chromium
字段默认说明
enabledtrue关闭后不注册任何工具
writesEnabledfalse评论写操作总开关
toolEnabled全 true单工具开关:hot / search / video / user / status / login / verify / comment / publish
maxResults20单次返回上限,硬上限 20
maxSearchPages3单次搜索翻页上限,硬上限 3
hourlyRequestBudget60滚动 1 小时请求预算
pageDelayMinMs / pageDelayMaxMs3000 / 8000翻页抖动区间
callDelayMinMs / callDelayMaxMs1800 / 3200调用间隔区间
pythonPath空默认 /.venv/bin/python(Windows 为 Scripts\python.exe)
dataDir空默认 /data
edgePath空默认自动发现
logLevelinfosilent / error / info / debug