360 Secure SkillHub
360 安全技能中心

WeChat Article Download API

该 Skill 通过一个外部文本提取接口,按给定的微信公众号文章链接获取内容,并按 html、markdown、text、json 四种格式保存到本地(文件名 {basename}.{ext}),逐格式打印 HTTP 状态码、Content-Type、文件路径与字节数;非 200 状态视为失败,任一格式失败时进程退出码为 1,未设置 --fail-fast 时继续处理其余格式。

lniosy
lniosy
热度 49.39
最近更新 2026-05-11 17:37:08
分类:效率依赖:代码执行 / 读写文件 / 第三方 API应用场景:文件转换 / 工作流 / 自动化脚本

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add wechat-article-download-api
Metadata
name
wechat-article-download-api
description
Fetch and export WeChat public article content through down.mptext.top API. Use when testing this API, downloading a WeChat article, validating html/markdown/text/json output differences, or batch-saving article content to local files.

WeChat Article Download API

Overview

Use this skill to call https://down.mptext.top/api/public/v1/download without API key, fetch a WeChat article by URL, and save outputs as html, markdown, text, or json.

Workflow

  1. Confirm target article URL.
  2. Pick output format(s): html, markdown, text, json.
  3. Run scripts/fetch_wechat_article.py to request API and save files.
  4. Check returned status, content type, and local file size.

Quick Commands

Fetch all 4 formats to current directory:

python scripts/fetch_wechat_article.py \
  --url "https://mp.weixin.qq.com/s/W-8MSBo5FwDY8OmCUN0cSw" \
  --formats html markdown text json

Set output directory and basename:

python scripts/fetch_wechat_article.py \
  --url "https://mp.weixin.qq.com/s/xxx" \
  --formats json \
  --outdir "d:/wechattxt/output" \
  --basename "wx_article"

Output Naming

Save files as {basename}.{ext}:

  • html -> .html
  • markdown -> .md
  • text -> .txt
  • json -> .json

Print one summary line per format:

  • HTTP status code
  • response Content-Type
  • output file path
  • byte size

Error Handling

Treat non-200 status as failure. Keep processing remaining formats unless --fail-fast is set. Raise process exit code 1 if any format fails.

Resources

  • API details: references/api.md
  • Runner script: scripts/fetch_wechat_article.py