A shareable Codex skill for reading WeChat public articles from mp.weixin.qq.com when normal desktop requests get sent to verification pages.
- Fetches article pages with a mobile WeChat user-agent
- Extracts title, author, account info, publish time, cover image, image URLs, HTML body, and plain text
- Supports direct URL fetching and parsing from saved local HTML
- Returns JSON, metadata-only output, plain text, or raw article HTML
wechat-article-reader-skill/
|-- README.md
|-- README_zh.md
|-- LICENSE
|-- .gitignore
`-- wechat-article-reader/
|-- SKILL.md
|-- agents/openai.yaml
`-- scripts/extract_wechat_article.py
Run the bundled extractor directly:
python wechat-article-reader/scripts/extract_wechat_article.py "https://mp.weixin.qq.com/s/97gEBa6m1-VIB25PFBELtw" --format meta
python wechat-article-reader/scripts/extract_wechat_article.py "https://mp.weixin.qq.com/s/97gEBa6m1-VIB25PFBELtw" --format textParse previously saved HTML:
python wechat-article-reader/scripts/extract_wechat_article.py article.html --from-file --format textManual install:
- Copy
wechat-article-reader/into~/.codex/skills/ - Restart Codex
GitHub install after publishing this repo:
python ~/.codex/skills/.system/skill-installer/scripts/install-skill-from-github.py --repo <owner>/<repo> --path wechat-article-readerOr use the GitHub tree URL:
python ~/.codex/skills/.system/skill-installer/scripts/install-skill-from-github.py --url https://github.com/<owner>/<repo>/tree/main/wechat-article-readerValidate the skill folder:
python -X utf8 ~/.codex/skills/.system/skill-creator/scripts/quick_validate.py wechat-article-readerMIT