salarymeow-downloader
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "salarymeow-downloader" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-27075c244729ca5ff3240f38c6d9662efef776ba54e34441dd13e196919a02a7. Verify the upstream source and version against https://skillhub.cn/skills/user_a94fcd12/salarymeow-downloader before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
skillhub.cn
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Cross-platform Downloader: SalaryMeow Downloader uses the fzpnowm.top backend API to download videos and images from platforms such as Douyin, TikTok, X (formerly Twitter), Bilibili, and Kuaishou. It is intended for parsing and downloading social media content (including watermark removal scenarios). Use when users need to download or parse media from social platforms.
Introduction source: third_party · user_a94fcd12 · 1.0.2 Reference
SkillPi interpretation
- Software, accounts and paid services
- Translation pending; see source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: salarymeow-downloader
description: >-
跨平台社交媒体媒体下载工具(SalaryMeow Downloader)。使用 fzpnowm.top 后端 API 下载抖音/TikTok/X/B站/快手的视频和图片。当用户想下载抖音视频、解析抖音链接、下载TikTok、下载B站视频、下载快手视频、下载Twitter视频、社交媒体视频下载、去水印下载时使用。触发词包括:下载抖音、抖音下载、去水印、TikTok download、B站下载、快手下载、视频下载、图片下载、save video、download video、salarymeow、fzpnowm。
metadata:
lightclaw:
emoji: "🐱"SalaryMeow Downloader 🐱
跨平台社交媒体媒体下载工具。支持 抖音 / TikTok / X(Twitter) / B站 / 快手。
基于 https://fzpnowm.top/ 后端 API,无需登录,免费使用。
运行要求
- GNU/Linux(依赖 coreutils
timeout、findutils、awk、python3 >= 3.6、curl) - 安装后执行
chmod +x *.sh(脚本内部均以bash <path>调用,无 +x 也能工作) - 清理任务依赖 cron(安装方式见「文件清理机制」)
文件清单
| 文件 | 说明 |
|---|---|
sm-dl.sh |
核心下载脚本 |
sm-dl-async.sh |
异步下载 wrapper(QQ/微信通道必用) |
yt-dl-status.sh |
查询后台下载任务状态 / 待推送队列 |
cleanup.sh |
定时清理下载文件(与推送 ack 绑定) |
快速使用
sm-dl <分享链接> [选项]
示例
# 解析链接,查看媒体信息
sm-dl https://v.douyin.com/xxxxxx/
# 下载视频(默认最高画质)
sm-dl https://v.douyin.com/xxxxxx/ -d
# 下载 MP3
sm-dl https://v.douyin.com/xxxxxx/ -d -f mp3
# 指定画质下载
sm-dl https://v.douyin.com/xxxxxx/ -d -q 1080p
# 下载多图帖子的所有图片(并发下载)
sm-dl https://v.douyin.com/xxxxxx/ -d -m all
# 查看详细调试信息
sm-dl https://v.douyin.com/xxxxxx/ -d -v
选项
| 参数 | 说明 | 默认值 |
|---|---|---|
-d, --download |
下载媒体 | 否(仅预览) |
-q, --quality |
画质:720p / 1080p / HD | 最高可用 |
-f, --format |
格式:video / mp3 | video |
-m, --mode |
模式:current / all / slideshow / live_photo | current |
-o, --output |
输出目录 | 当前目录 |
-v, --verbose |
显示详细调试信息 | 否 |
环境变量
| 变量 | 说明 | 默认值 |
|---|---|---|
SMDL_API_BASE |
后端 API 地址 | https://fzpnowm.top |
SMDL_PARALLEL |
多图并发下载数 | 4 |
SMDL_TIMEOUT |
异步任务总超时(秒) | 600(-m all 自动 1800) |
SMDL_MAX_PER_USER |
每用户同时在途任务数 | 2 |
SMDL_MAX_GLOBAL |
全局同时在途任务数 | 6 |
SMDL_MEDIA_TTL_MIN |
已推送文件的保留分钟数 | 60 |
SMDL_NO_COLOR |
非空则关闭 ANSI 颜色 | 非 TTY 自动关闭 |
SMDL_MEDIA_DIR |
媒体根目录 | ~/.lightclaw/media |
API 说明
工具使用 https://fzpnowm.top/ 的后端 API:
| 接口 | 方法 | 说明 |
|---|---|---|
/api/parse |
POST | 解析分享链接,返回媒体信息 |
/api/download |
POST | 下载媒体文件(二进制流) |
/api/stream |
GET | 视频流代理预览(参数:video_url, quality) |
/api/parse 请求/响应
// Request: { "url": "https://v.douyin.com/xxxx/" }
// Response:
{
"success": true,
"title": "视频标题",
"thumbnail": "https://...",
"duration": 11,
"platform": "douyin",
"type": "video", // video | photo | live_photo
"video_url": "https://...", // 视频流地址
"images": ["https://..."], // 图片列表(photo 类型时)
"video_urls": ["https://..."] // 实况视频列表
}
/api/download 请求参数
| 参数 | 说明 | 适用类型 |
|---|---|---|
url |
必填 原始分享链接 | 全部 |
type |
video / mp3 / image |
全部 |
quality |
720p / 1080p / HD |
video |
image_index |
图片索引(从0开始) | photo |
live_photo_format |
true 下载为实况图 |
live_photo |
live_photo_index |
实况视频索引 | live_photo |
下载结果会经过三重校验(HTTP 2xx、非 JSON 错误体、file 魔数白名单),后端报错不会被当成媒体文件保存。
⚡ 异步下载(QQ/微信通道必看)
绝对不要把下载任务放在消息处理线程里同步执行。 下载会阻塞通道,轻则十几秒卡死,重则进程进入 D 状态不可恢复。必须用异步 wrapper:
sm-dl-async <channel> <user_id> <url> [options]
channel / user_id 取自当前消息上下文:通道名(qq / weixin)与发送者唯一标识(QQ 的用户 openid/QQ号、微信的 wxid/联系人 id)。Agent 在处理通道消息时应能从框架注入的上下文中读到这两个值;Dashboard 会话不需要本脚本。
示例
# QQ 通道异步下载
sm-dl-async qq AFB475853D5CB77468BB4109EBB531E8 "https://v.douyin.com/xxx/" -d -q 1080p
# 微信通道异步下载音频
sm-dl-async weixin o9cq80-xxx "https://x.com/xxx" -d -f mp3
特性
- 立即返回,不阻塞消息通道(setsid 脱离进程组,不会被通道框架回收时连坐杀死)
- 超时保护:默认 10 分钟,
-m all自动放宽到 30 分钟 - 真·指数退避重试:共 3 次尝试,间隔 2s→4s
- 同链接去重、每用户/全局并发上限,防刷防爆
- 看门狗:进程异常死亡的任务会被标记为
crashed - 产物按
media/<task_id>/隔离存放,多用户并发不互相覆盖
查询下载状态
# 列出所有任务
yt-dl-status
# 查看某个具体任务
yt-dl-status smdl_1721300000_12345
# 查看待推送队列(outbox)
yt-dl-status --outbox
📮 Outbox 推送契约(QQ/微信通道的核心闭环)
异步任务结束(成功或失败)都会写入一条待推送记录:
~/.lightclaw/outbox/<task_id>.json
{
"task_id": "smdl_1721300000_12345",
"channel": "weixin",
"user_id": "o9cq80-xxx",
"kind": "media", // media=推送文件 | text=推送文本(失败/超时通知)
"title": "视频标题",
"message": "下载完成",
"dir": "~/.lightclaw/media/smdl_1721300000_12345",
"files": ["smdl_1721300000_12345.mp4"],
"time": "2026-07-23T12:00:00Z"
}
Agent 必须遵守的规则:
- 在 QQ/微信通道会话中,每次准备回复用户之前先执行
yt-dl-status --outbox检查待推送队列。 kind=media:对dir下的每个文件调用推送工具(微信用file_preview,source.url为file://<dir>/<file>),全部推送成功后删除该 outbox 条目(删除 = ack,cleanup 只会清理已 ack 且超龄的文件)。kind=text:把message原样发给用户,然后删除条目。- 不要只下载不推送——只执行
execute_shell_command不会触发任何通道推送。 - 推送失败时不要删除 outbox 条目,下次会话重试;超过 24 小时未消费的条目会被 cleanup 清除并告警。
各通道使用指南
📱 微信 BOT
用户发链接到微信时:
- 接收链接 → 调
sm-dl <url>(不带 -d)解析预览 - 展示信息 → 标题、类型、时长
- 确认下载 → 问用户要视频还是 MP3(视频链接默认下视频,用户说"只要音频"才下 MP3)
- 提交异步任务 →
sm-dl-async weixin <user_id> <url> -d [...](唯一允许的方式,禁止同步下载) - 推送结果 → 按上方 Outbox 契约消费并调用
file_preview推送
微信支持的文件类型
| 类型 | 能否推送 | 备注 |
|---|---|---|
| 视频 MP4 | ✅ 直接推视频消息 | 走 CDN 上传 |
| 图片 JPG/PNG | ✅ 直接推图片消息 | 走 CDN 上传 |
| 音频 MP3 | ✅ 直接推音频消息 | 走 CDN 上传 |
| 其他文件 | ✅ 推文件消息 | 走文件上传 |
⚠️ 各通道对文件大小/时长有限制。文件接近或超过通道上限时,Agent 应主动降画质重下(
-q 720p)或改发文件消息,而不是把推送失败留给用户。
🤖 QQ BOT
流程与微信完全一致(同一份 Outbox 契约、同一个 file_preview 推送方式),只有两点差异:
channel参数传qq,user_id传 QQ 消息上下文中的用户标识(openid/QQ号)- 若运行环境的 QQ 通道不支持
file_preview,则改用该框架提供的 QQ 素材上传工具(multipart 上传 → 获得 media_id → 发送媒体消息),上传成功同样视为 ack,随后删除 outbox 条目
重要:QQ 通道同样必须用异步方式下载, 否则会像之前那样把通道卡死。
📊 Dashboard
Dashboard 会话没有消息通道阻塞问题,直接同步下载即可:
sm-dl <url> -d -o ~/.lightclaw/workspace/output/
展示文件链接即可(Dashboard 不需要推送,也不经过 outbox)。
文件清理机制
清理资格与「推送完成」绑定,不再单纯按时间删除:
| 对象 | 策略 |
|---|---|
media/<task_id>/ 任务目录 |
outbox 有待推送条目 → 保留;已 ack → 超过 60 分钟清理 |
output/ 平铺文件 |
超过 60 分钟清理 |
/tmp/smdl-async-* 等临时残留 |
超过 30 分钟清理(含目录) |
状态文件 temp/dl-status/*.status |
保留 24 小时 |
| outbox 条目 | 超过 24 小时未消费 → 清理并告警(说明推送链路断了) |
logs/sm-dl-async.log |
超过 10MB 自动截断保留尾部 1MB |
安装 cron(一次性部署步骤)
chmod +x /path/to/skills/salarymeow-downloader/*.sh
crontab -e
# 添加:
0 * * * * /path/to/skills/salarymeow-downloader/cleanup.sh >> ~/.lightclaw/logs/cleanup.log 2>&1
先用 cleanup.sh --dry-run 预览一遍确认无误再启用。
支持的链接格式
| 平台 | 链接格式 |
|---|---|
| 抖音 | douyin.com / v.douyin.com |
| TikTok | tiktok.com / vm.tiktok.com / vt.tiktok.com |
| X / Twitter | twitter.com / x.com / t.co |
| B站 | bilibili.com / b23.tv |
| 快手 | kuaishou.com |
Current listing version
1.0.2
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 解决高频刚需:社交媒体去水印下载需求广泛
- 支持多平台:抖音/TikTok/X/B站/快手全覆盖
- 完整异步机制:适配QQ/微信消息通道,避免阻塞
Highlights
- 触发词覆盖全面:中英文关键词齐全
- 边界清晰:明确限定适用平台范围
- 场景描述具体:涵盖各种下载变体需求
Areas to improve
-
缺少When to Use独立章节 Reported severity: Minor
文档中未设置独立的When to Use章节,但核心使用场景已在description和快速使用中体现
Recommendation: 建议增加独立的When to Use章节以提升文档规范性
Highlights
- 结构完整:从快速使用到详细API说明层次清晰
- 端到端示例丰富:提供多个具体命令示例
- 推送契约明确:定义了完整的Outbox闭环机制
Highlights
- 异常处理完善:超时保护+指数退避+看门狗三重保障
- 并发控制严格:用户/全局任务数限制防刷防爆
- 文件校验可靠:HTTP状态+内容类型+魔数白名单三重校验
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
These common operations were not identified in the main document. This does not mean no permissions or risks exist.
Domains or addresses referenced in the document
These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.
- ...
- fzpnowm.top
- v.douyin.com
- x.com
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Translation pending; see source documentation.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.