Extract, summarize, and synthesize WeChat public account articles into structured knowledge cards
Documents
WeChat Article Extract
Try itExtract public WeChat Official Account articles from mp.weixin.qq.com links or saved HTML into clean Markdown or structured JSON, including title, account na...
What it does
Extract public WeChat Official Account articles from mp.weixin.qq.com links or saved HTML into clean Markdown or structured JSON, including title, account na...
The skill document
WeChat Article Extract
Use this skill to extract a public WeChat Official Account article into portable Markdown or JSON. It is intentionally local and generic: it does not require the user's Feishu, knowledge-base profile, database, or API keys.
Quick Start
Run the bundled script from the skill directory:
python3 scripts/extract_wechat_article.py "https://mp.weixin.qq.com/s/..." --format markdown --output article.md
python3 scripts/extract_wechat_article.py "https://mp.weixin.qq.com/s/..." --format json --output article.json
For an HTML file already saved from a browser:
python3 scripts/extract_wechat_article.py --html-file article.html --source-url "https://mp.weixin.qq.com/s/..." --format markdown
Workflow
- Confirm the input is a public
https://mp.weixin.qq.com/s/...article URL or a saved HTML file. Private drafts, logged-in backend pages, and non-WeChat URLs are out of scope. - Extract with
scripts/extract_wechat_article.py. - If network fetching fails because WeChat blocks the request, ask the user to save the article HTML from a browser and rerun with
--html-file. - Use Markdown for human-readable archives and JSON for downstream import pipelines.
- Keep copyright boundaries: summarize or transform extracted content when sharing externally; do not republish full articles unless the user has rights to do so.
Outputs
Markdown output contains:
- article title, account name, publish time, source URL, and image count
- full text with blank-line paragraph separation
- tables converted to Markdown tables when possible
- inline image placeholders like
[[WECHAT_IMAGE_1]] - image URL list at the end
JSON output contains:
articleIdtitleauthorpublishTimesourceUrlcontentcontentWithImageMarkersimageEntriesimageUrlsimageCountcoverImageUrl
Notes
- The script uses only the Python standard library.
- It preserves image positions with markers but does not download images by default.
- Add
--download-imageswhen the user explicitly wants local image files. - WeChat article pages change over time; if live extraction fails, saved HTML is the most reliable fallback.
Related skills
Fetch and export WeChat public article content through down.mptext.top API. Use when testing this API, downloading a WeChat article, validating html/markdown...
Extract the title, author, publish date, and full body text from Weixin official account article links on mp.weixin.qq.com. Use this skill when a user wants...
Save WeChat Official Account articles and image-note / 小绿书 pages from mp.weixin.qq.com into a user-specified local folder as Markdown plus local assets. Use...
使用 Playwright headed 模式 + 真实系统浏览器抓取微信公众号文章。 当用户给出 mp.weixin.qq.com 链接、说要抓取/下载公众号文章、 或遇到"环境异常"验证页时,必须使用本技能。 本技能会弹出真实浏览器窗口绕过微信反爬,提取文章标题、作者、正文, 并同时保存 .md 和 .htm...
Take existing HTML content (file, URL, or pasted HTML) and publish it directly to WeChat Official Account draft box. No file conversion, no web scraping — ju...