i18n/skills/content-pipeline/weixin-fetch/SKILL.md
当用户想要抓取微信公众号(WeChat)文章并将其转换为干净的 Markdown 时使用此技能。处理“抓取微信文章”、“获取这篇公众号文章”、“保存公众号文章”等工作流程。使用基于 Playwright 的浏览器自动化和防机器人绕过技术,实现可靠的微信内容提取。
npx skillsauth add Jst-Well-Dan/Skill-Box weixin-fetchInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
使用 Playwright 浏览器自动化抓取微信公众号文章并转换为干净的 Markdown 格式。
pip install playwright markdownify
playwright install chromium
# 自动生成文件名 (YYYYMMDD+标题 格式)
python scripts/fetch_weixin.py "https://mp.weixin.qq.com/s/xxxxx"
# 自定义文件名
python scripts/fetch_weixin.py "https://mp.weixin.qq.com/s/xxxxx" article.md
当用户请求抓取微信文章时:
验证 URL:确保它是微信文章链接 (mp.weixin.qq.com)。
执行抓取:
python scripts/fetch_weixin.py <url> [output_filename]
输出文件名是可选的 - 默认为 YYYYMMDD+标题。
报告结果:
# 用户:“抓取这篇微信文章”
python scripts/fetch_weixin.py "https://mp.weixin.qq.com/s/xxxxx"
# 结果:
# ✓ 已保存:20251214关于财政政策和货币政策的关系.md
# ✓ 统计信息:12,345 字符,8,234 字,5 张图片
# 用户:“获取这篇微信文章,保存为 economy.md”
python scripts/fetch_weixin.py "https://mp.weixin.qq.com/s/xxxxx" economy.md
# 结果:
# ✓ 已保存:economy.md
| 问题 | 解决方案 |
|-------|----------|
| 微信屏蔽 | 脚本使用真实浏览器绕过防机器人检测 |
| 超时 | 脚本具有 60 秒超时并带重试,通常第二次尝试即可成功 |
| Playwright 未安装 | 运行:pip install playwright && playwright install chromium |
| 内容为空 | 等待页面完全加载;检查文章是否仍可访问 |
| 图片丢失 | 脚本会自动转换懒加载图片;检查网络连接 |
tools
Extract frames or short clips from videos using ffmpeg.
tools
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with colors/fonts that you can apply to any artifact that has been creating, or can generate a new theme on-the-fly.
tools
Toolkit for creating animated GIFs optimized for Slack, with validators for size constraints and composable animation primitives. This skill applies when users request animated GIFs or emoji animations for Slack from descriptions like "make me a GIF for Slack of X doing Y".
development
Best practices for Remotion - Video creation in React