wechat-channels-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 "wechat-channels-downloader" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-6eda7dc91bb33a33f4bdfa8522c77a59d8fc3ccb8555d15b0e6853d88791d033. Verify the upstream source and version against https://skillhub.cn/skills/user_fa3f12d0/wechat-channels-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
wechat-channels-downloader: A downloader for WeChat Channels videos (a download-dedicated split from media2text). Use when users want to download Channels videos, submit share links starting with weixin.qq.com/sph/, or ask “how to download/save Channels videos”. Automatically parses and downloads Channels videos to local storage without installing system root certificates or changing system proxy; supports two modes: Yuanbao login (paste link to one-click download, one-time login remains valid) and local-file mode (no login). v1.1.0 additions: batch downloads (single login for a whole batch), saving metadata and cover after download, optional linkage with media2text for transcription and derivative creation to form a “download→transcribe→derivative” loop.
Introduction source: third_party · user_fa3f12d0 · 1.1.2 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Audience
- Translation pending; see source documentation.
- Software, accounts and paid services
- Translation pending; see source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: 视频号视频一键下载
version: "1.1.2"
description: "微信视频号视频下载工具(从 media2text 分出的下载专用版)。当用户要下载视频号视频、发送 weixin.qq.com/sph/ 开头的分享链接,或问『怎么下载视频号视频/视频号怎么保存』时使用。自动解析并下载视频号视频到本地,无需安装系统根证书、不改系统代理;支持元宝登录(贴链接一键下载,一次性登录永久有效)与本地文件(零登录)两种模式。v1.1.0 新增:批量下载(整批只登录一次)、下载后元数据+封面落盘、可选联动 media2text 转录+二创(形成『下载→转录→二创』闭环)。"
agent_created: true
disable: false版权声明:本技能 (视频号视频一键下载) 由「书童哥」原创,核心解析脚本为自研实现(非任何第三方打包工具)。 允许个人学习与非商业使用;禁止未经授权的二次分发、售卖、或改头换面重新发布(含被 AI 蒸馏整合后改发);如需转载或商用,须先获作者授权并保留署名。
视频号视频一键下载
Overview
一个专注微信视频号视频下载的工具型 skill。给你一个 https://weixin.qq.com/sph/... 分享链接,自动解析出真实直链并下载 mp4 到本地;如果你手头已有手机里的视频号视频文件,也能零登录直接整理到电脑。
原理(自研实现,不依赖任何第三方打包工具):
视频号官方不提供公开下载接口,但分享链接 sph/... 可以通过腾讯元宝(Yuanbao) 的解析接口换成真实直链。本 skill 内置 scripts/wx_channels.py 实现这条链路:
- 用 Playwright 打开一个专用隔离的 Edge/Chrome 配置目录(不影响你日常浏览器),让你登录元宝。
- 拦截登录后的鉴权请求头,调用元宝
get_parse_result把 sph 链接换成可播放地址。 - 取出
generalToken+exportId,再调微信视频号finder-previewfeed 接口拿到真实videoUrl。 - 用标准库 urllib 把 mp4 流式下载到本地,并校验 ftyp 头。
安全约定:不安装系统根证书、不改系统代理(与"本地抓包"方案有本质区别);不向外打印任何 cookie / token / 直链;只输出结构化 JSON。
触发逻辑 (When to Use)
当用户出现以下任一时触发本 skill:
- 发送
https://weixin.qq.com/sph/...链接,想下载该视频号视频 - 说"下载视频号视频""视频号怎么保存""视频号视频怎么下载""保存视频号到本地""视频号解析""视频号直链"
- 手头有手机里的视频号视频文件(本地路径),想整理/转存到电脑
不触发:B站/抖音/YouTube 等其它平台(交给 media2text 等通用工具)。
关于"转录文字":v1.1.0 起,下载后可加
--transcribe联动 media2text(本 skill 就是从 media2text 分出来的,复用其转录/二创能力)自动产出逐字稿 + 多平台二创稿,形成「下载 → 转录 → 二创」闭环。若只需纯下载,不加该参数即可。
核心脚本
scripts/wx_channels.py(自研,单文件、可独立运行)。子命令:
| 命令 | 作用 |
|---|---|
doctor |
检查环境(浏览器是否安装、是否已登录元宝),不打印任何密钥 |
login |
打开隔离浏览器让用户登录元宝(一次性,长期有效) |
resolve <sph-url> |
只解析出直链与元信息,不保存 |
download <sph-url> |
解析并下载 mp4 到本地(默认 ~/Downloads,可用 --output-dir 指定);支持 --transcribe 联动转录、--srt 导出字幕、--no-rewrite 仅转录 |
batch [urls...] [--file urls.txt] |
v1.1.0 新增 批量下载,整批只登录一次;支持与 download 相同的 --transcribe / --srt / --no-rewrite,输出汇总 JSON |
v1.1.0 起,
download/batch下载 mp4 的同时会落盘一份同名.json元数据(作者/标题/封面 url/技术字段),并尽力抓取同名.jpg封面图。
Quick Start
方式一:本地文件(零登录·最快,推荐急着要视频时用)
手机微信点开视频 → 右下角「…」→「保存到相册」,或转发给「文件传输助手」后再另存到电脑,然后把本地文件路径告诉 AI 即可。无需安装任何东西、无需登录。
方式二:分享链接(贴链接·需登录元宝一次)
cd <本 skill>/scripts
# 第 1 步:登录元宝一次(会话存在专用隔离配置目录,之后长期有效)
python wx_channels.py login --browser edge # 或 --browser chrome
# 在弹出的浏览器里用微信/QQ 扫码登录元宝,登录成功关窗即可
# 第 2 步:把 sph 链接丢进来,自动下载 mp4 到本地
python wx_channels.py download "https://weixin.qq.com/sph/xxxxxx"
# 指定保存目录:
python wx_channels.py download "https://weixin.qq.com/sph/xxxxxx" --output-dir "D:/视频号下载"
# v1.1.0:下载后联动 media2text 做转录 + 多平台二创(需已安装 media2text 技能)
python wx_channels.py download "https://weixin.qq.com/sph/xxxxxx" --transcribe
# 仅转录 + 字幕,不要二创稿:
python wx_channels.py download "https://weixin.qq.com/sph/xxxxxx" --transcribe --no-rewrite --srt
# v1.1.0:批量下载(整批只登录一次,效率关键)
python wx_channels.py batch "https://weixin.qq.com/sph/aaa" "https://weixin.qq.com/sph/bbb" --output-dir "D:/视频号合集"
# 或从链接清单文件批量(每行一个,# 开头为注释):
python wx_channels.py batch --file "D:/sph_urls.txt" --transcribe
首次使用(仅方式二):依赖 Playwright 浏览器。安装:
pip install "playwright>=1.52,<2" && playwright install chromium(或复用本机已装的 Edge/Chrome,见 dependencies)。方式一无需任何安装。
常见问题 (FAQ)
Q:视频号必须安装/登录什么? A:只有"贴链接下载"需要 Playwright 浏览器 + 一次元宝登录(见 Quick Start 方式二)。"本地文件"方式什么都不用装。
Q:元宝登录麻烦吗?
A:只烦一次。登录态保存在本机专用隔离浏览器配置目录(%LOCALAPPDATA%/sphdownload/...),关掉窗口后依然有效,之后所有 sph 链接秒下,无需重复登录。不想登录?走"本地文件"方式零登录。
Q:为什么不用装根证书 / 改代理的方案? A:市面上一些"抓包"类下载器要装系统根证书 + 改系统代理做中间人拦截,有安全和隐私隐患。本 skill 走元宝解析接口,不装根证书、不改系统代理,更安全干净。
Q:下载的 mp4 有水印吗? A:按平台返回的原画质下载保存,不做额外加水印处理。
Q:元宝接口失效了怎么办? A:腾讯内部接口可能随版本调整失效。失效时退回"手机下载到本地 → 传文件路径"的本地文件方式即可,不影响其它功能。
Q:会把我本地视频传到外面吗? A:不会。下载过程仅联网腾讯服务器拿直链;视频文件存到你本机指定目录,不出电脑。本地文件方式更是完全不联网。
Q:v1.1.0 的 --transcribe 是什么?我没有 media2text 会怎样?
A:--transcribe 会在下载完成后调用 media2text(本 skill 就是从 media2text 分出来的,转录/二创能力由它提供)对本地 mp4 做转录,并产出逐字稿 + 多平台二创稿。找不到 media2text 时不会报错、也不会影响下载,只是跳过转录那一步(返回 transcribe.invoked=false 提示)。本机已配 key 时 media2text 走 LLM 三平台改写;无 key 退化为本地轻量清洗。
Q:v1.1.0 下载后会多出来 .json 和 .jpg 文件,是什么?
A:.json 是这条视频的元数据侧车(作者昵称、标题、封面地址、文件大小、sha256 等),.jpg 是尽力抓取的视频封面图。两者都不影响 mp4 本身;不需要可忽略,后续版本会加开关。
Q:批量下载 batch 和多次 download 有什么区别?
A:核心区别在登录次数。batch 整批只登录元宝一次就循环下载所有链接;多次 download 每次都要重新打开浏览器登录,慢且易被风控。batch 还支持 --file 从链接清单批量读入,并输出一份汇总 JSON 便于脚本化消费。
安全与隐私
- 登录态只存在专用配置目录,绝不读取你的日常浏览器 profile。
- 脚本不向外打印 cookie / token / 媒体直链 / 请求头,只输出结构化 JSON。
- 不安装系统根证书、不改系统代理。
报错与排错(v1.0.1 新增,v1.1.0 增强)
所有失败都会以结构化 JSON 返回 error.code 与 error.hint(一句能直接照做的处置),例如:
{ "ok": false, "error": { "code": "YUANBAO_AUTH_FAILED", "message": "元宝会话已失效,请重新登录", "hint": "元宝会话已失效,运行 login --force 清空专用配置目录后重新登录。" } }
完整错误码对照表见 references/troubleshooting.md。
拿不准时,先跑环境自检(不打印任何密钥):
python wx_channels.py doctor --browser edge
依赖
详见 references/dependencies.md(仅"贴链接"方式需要 Playwright;"本地文件"方式零依赖)。
Current listing version
1.1.2
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 解决微信视频号下载这一明确刚需场景
- 支持批量处理和联动转录形成完整工作流
- 提供零登录本地文件处理方式,覆盖多种使用场景
Highlights
- 触发词覆盖全面,包含链接、关键词和本地文件路径
- 明确区分了视频号与其他平台的边界,避免误触发
Highlights
- 文档结构清晰,包含完整的快速开始、常见问题、安全说明
- 提供了详细的命令行示例和参数说明
- frontmatter 完整,版本信息明确
Highlights
- 工具来源明确,自研实现不依赖第三方打包工具
- 错误处理完善,返回结构化 JSON 错误码和提示
- 安全机制健全,不安装根证书、不改系统代理
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.
-
Install or fetch external dependencies
Use official sources and pin versions. Check install scripts in an isolated environment. This document check does not cover code downloaded later.
Mentioned in main document · lines 82 -
Accounts, secrets or authorization
Use a dedicated least-privilege account. Keep secrets out of public content and command logs; verify the receiving service and tenant.
Mentioned in main document · lines 45, 128
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.
- weixin.qq.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.