メインコンテンツへスキップ
D

dsh-plugin-ysjf-materialdownload

d-twt-b/dsh-plugin-ysjf-materialdownload

Buys a 影视飓风 (ysjf.com) stock-footage collection at a licence the user picks, completes the order, then fetches each material's Baidu Netdisk share link and transfers it into a Netdisk folder named after the collection. Four tools: read-only collection inspection, cart filling, sign-in, and the purchase-and-transfer pipeline. Runs in batches and records progress per collection, so an interrupted run continues instead of restarting. Stops and hands the window back when Baidu shows a captcha, when real-name verification is required, or when the cart is not empty; it never solves a captcha itself. Requires a signed-in ysjf.com session (single-session site, so signing in here signs the account out elsewhere), a signed-in Baidu Netdisk session, and Edge on the machine.

インストール

dsh plugin --profile web add github:d-twt-b/dsh-plugin-ysjf-materialdownload

README

影视飓风素材 · 购物车与网盘转存

中文 | English

在 DeepSeek Harness 里批量买下影视飓风(ysjf.com)的素材合集,并把网盘链接转存到自己的百度网盘。

它能做什么

工具作用
ysjf_collection只读。查看合集名、素材数、可用授权方式与单价、购物车占用、各授权已入车数量。
ysjf_fill_cart只加购物车。按合集顺序逐条加入,装满 100 件停。
ysjf_download完整链路:买下整个合集 → 逐个取百度网盘链接 → 逐个转存到以合集命名的网盘文件夹。
ysjf_sign_in弹出可视窗口登录,登录成功后自动关闭。

怎么用

  1. 把合集网址发给 agent,例如 https://www.ysjf.com/collection/c_ABjJSJqwEBpc。
  2. agent 先用 ysjf_collection 报告素材数和授权选项,问你选哪种授权。
  3. 选好后调用 ysjf_download,它按 maxItems 分批推进;每次返回已购买 / 已转存 / 剩余,再调一次就继续。

命令行(不经过 AI,最省钱)

包里带一个 ysjf-download 命令,整批跑完不需要模型参与:

npx dsh-plugin-ysjf-materialdownload --login          # 第一次:打开窗口登录影视飓风
npx dsh-plugin-ysjf-materialdownload <合集URL> --license personal_learning --first 15
参数作用
--license授权方式,默认 personal_learning
--first N / --random N取前 N 条 / 随机 N 条
--limit N本轮最多转存 N 条
--resume续跑上次选中的那批
--retry-failed重置失败标记后重试
--folder网盘文件夹名,默认合集标题
--profile浏览器配置目录,默认 ~/.dsh/ysjf-cart-profile
--log进度日志路径,默认 ysjf-download.log
--open <url>用同一配置目录打开任意网址,用来登录百度

登录百度:

ysjf-download --open https://pan.baidu.com --wait 300

完整说明:docs/USAGE.zh.md · English。

前提

  • 影视飓风必须登录:加购和取链接都要求会话。未登录时工具会提示调用 ysjf_sign_in。
  • 百度网盘必须登录:转存前请先在浏览器里登录百度网盘,插件不会替你输百度账号。
  • 影视飓风同一账号只允许一个有效会话:在这里登录会把该账号从其他浏览器踢下线。

容错设计

  • 单条重试:每条最多试 3 次,失败只影响自己。
  • 超时递增:等待按条件轮询而非固定秒数;第 1/2/3 次尝试的预算分别是 1×/2×/3×,慢机器不会被误判为失败。
  • 风控即停:百度出现「安全验证 / 拖动拼图 / 操作过于频繁」立即停止并交还窗口,不尝试绕过。
  • 断点续跑:已购买、已取链接、已转存分别记录,重复调用不重买、不重转。
  • 购买去重:下单前读取账号已购合同,已拥有的素材不会重复购买。

已知限制

  • 购物车必须为空才能开始下单;非空会直接返回原因。
  • 网盘里部分素材是文件夹包而不是单个文件,批量下载时需要进入文件夹取文件。
  • 部分免费素材是加密压缩包,解压密码需关注公众号「影视飓风MediaStorm」回复「素材密钥」获取,插件拿不到。
  • 百度的人机验证不会自动完成。
  • 速度约 7–20 秒/条(取决于百度响应),161 条约需 18–50 分钟。

数据与权限

  • 只访问 ysjf.com / api.ysjf.com 与 pan.baidu.com。
  • 使用一个独立的浏览器配置目录(配置项 profileDir),登录态保存在其中。
  • 使用 mode=password 时,手机号和密码会写入本机 DSH 凭据文件 ~/.dsh/.credentials.yaml——明文 YAML,不加密;传 remember: false 可不保存。
  • 进度记录在 ~/.dsh/ysjf-cart-state.json,删除即重置。

配置

- id: ysjf-cart
  name: 'dsh-plugin-ysjf-materialdownload'
  config:
    profileDir: 'C:\path\to\browser-profile'
    headless: true
    pageTimeoutMs: 30000      # 单次页面加载预算
    actionTimeoutMs: 20000    # 单步操作预算

関連プラグイン