设计与多媒体

小程序素材下载

试用

Resolve and download media from 视频号、抖音、小红书 through a configured resolver, plus local B站 downloads. Use when Codex needs to call, configure, debug, sync, or e...

它能做什么

Resolve and download media from 视频号、抖音、小红书 through a configured resolver, plus local B站 downloads. Use when Codex needs to call, configure, debug, sync, or e...

技能文档

Miniapp Media Downloader

Default Target

Use the configured resolver service by default.

  • Base URL: read from MINIAPP_RESOLVER_BASE_URL
  • Distribution key: read from MINIAPP_DISTRIBUTION_KEY
  • Health path: /health
  • Core endpoint: POST /api/resolve
  • Auth header: X-Distribution-Key

Users get MINIAPP_RESOLVER_BASE_URL and MINIAPP_DISTRIBUTION_KEY by contacting helloaigc2023. Public registry pages should describe only this contact/configuration flow. Do not hard-code public domains in user-facing docs. Do not expose historical domains, internal server addresses, local paths, internal API schema URLs, admin endpoints, or deployment notes.

Read references/dayuMiniPragram.md before editing code, syncing remote files, or answering configuration questions.

Core Rules

  • Keep media bytes off the resolver server. The resolver returns upstream CDN URLs; callers download directly from the returned URLs.
  • Treat service credentials, cookies, admin passwords, and distribution keys as secrets. Do not print or commit them.
  • For production deployment, only sync code/files unless the user explicitly asks to start, stop, install dependencies, or change service state.
  • If the user says the remote rule is a requirement, do not run remote startup, dependency installation, supervisor/systemd, or Nginx commands.

API Workflow

  1. Health check:

Use the configured local or public health endpoint.

  1. Resolve a link:

Send POST /api/resolve with Content-Type: application/json and X-Distribution-Key.

For public access, use:

curl -X POST "$MINIAPP_RESOLVER_BASE_URL/api/resolve" \
  -H 'Content-Type: application/json' \
  -H "X-Distribution-Key: $MINIAPP_DISTRIBUTION_KEY" \
  -d '{"url":"复制来的分享文案或链接"}'
  1. If X-Distribution-Key is missing or invalid, expect a 401 payload with:
    • contact: helloaigc2023
    • qrUrl: https://gpt-iamegs2.oss-cn-beijing.aliyuncs.com/qr-wechat.jpg

Resolver Behavior

  • 视频号 requires private service-side credentials or worker access. Do not expose those details in user-facing docs.
  • 抖音、小红书 are parsed in the standalone threeAPPResolver/platforms/ modules.
  • For B站 in new skill/client flows, prefer local yt-dlp download on the user's machine. Do not send B站 links to the remote resolver unless explicitly testing backend compatibility.
  • Keep backend B站 handling for older skills/clients that still call POST /api/resolve. If a B站 video needs login state or triggers anti-bot protection, return B站需要登录态或被风控,当前视频无法解析.
  • Per-user permissions and parse logging use SQLite. Use manage_auth.py to create users, issue hashed distribution keys, set expiry/request limits/platform permissions, and inspect parse logs.
  • Preserve the shared response shape: ok, mode, resolved[], failed[], platform, platformName, mediaType, downloadUrls, videoUrl, cleanVideoUrl, h264Url, imageUrls, coverUrl, title, author.
  • Prefer h264Url for 视频号 playback/download when present.

Validation Checklist

  • GET /health returns ok: true.
  • GET /health loads without exposing private deployment details.
  • POST /api/resolve without a key returns the contact/QR payload.
  • python -m py_compile app.py platforms/*.py passes locally before syncing.

相关技能

小红书视频下载 — 粘贴小红书视频链接,一键解析返回无水印视频下载链接。当用户需要下载小红书视频、保存红书视频、获取小红书视频直链时使用。触发词:小红书视频下载、红书视频下载、小红书视频解析、下载小红书视频、RED视频下载。

1 次安装

一键解析视频号视频的真实下载地址。粘贴视频号分享链接,即可获取视频标题、封面图和高清无水印下载地址。触发词:当用户提到'解析视频号'、'视频号下载地址'、'视频号下载'、'视频号无水印下载'时使用

1 次安装

短视频下载器 — 支持抖音、小红书、快手、视频号、B站、YouTube、Instagram 等主流平台无水印视频下载,开箱即用。

16 次安装1 星标

抖音账号视频批量下载器 — 输入抖音号,自动拉取账号全部作品并解析无水印下载链接,支持批量一键下载到本地。适用场景:竞品账号内容拆解与逐帧学习、收藏喜欢的创作者全部作品避免被删、批量搬运素材二次剪辑创作、保存自己账号作品做本地备份防丢失、课程/教程类视频离线囤货反复看、甲方要求提供无水印源文件、达人合作前快速拉取对方作品做背调分析。触发词:抖音主页下载、抖音视频下载、抖音批量下载、抖音无水印下载、下载抖音作品、抖音账号视频提取、抖音视频保存、抖音去水印、抖音视频备份、竞品视频下载。

1 次安装

当用户想要**下载抖音视频**、**下载B站视频**、**解析无水印直链**、**提取最高画质视频**、**把视频下下来**、**保存抖音/B站视频**时自动触发。 专门处理哔哩哔哩(Bilibili/B站)和抖音(Douyin)的任意视频链接(包括短链 b23.tv、douyin.com、bilibili.com 等)。 自动识别平台,优先使用 yt-dlp 获取最高画质,失败时自动切换备用方案,最后本地下载并用 ffmpeg 合并音视频,保存到 downloads 文件夹。 【重要约束】仅支持 B站 和 抖音 链接,其他任何平台的链接一律不处理。 常见触发口语(越多越好): - “帮我

18 次安装