yichen-wechat-mp-batch-exporter
Skill này làm gì
Skill này tải nội dung các bài viết của tài khoản chính thức WeChat và có thể xuất danh sách bài cùng số liệu để bạn lưu trữ. Skill dành cho người muốn có bản sao cục bộ các bài đăng của một tài khoản công khai để sử dụng riêng tư.
Khi nào nên dùng
- ✓Khi bạn muốn lưu nội dung của một số bài viết tài khoản công khai WeChat cụ thể.
- ✓Khi bạn muốn xuất danh sách các bài viết cũ của một tài khoản công khai ra tệp.
- ✓Khi bạn muốn biết số lượt đọc và bình luận của các bài viết trên một tài khoản WeChat.
Liên kết skill
https://github.com/mcncarl/yichen-skills/blob/main/yichen-wechat-mp-batch-exporter/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Tải toàn văn ba bài viết WeChat này dưới dạng tệp Markdown để tôi có thể đọc ngoại tuyến.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent chạy một công cụ kiểm tra cục bộ, sau đó tải nội dung bài viết từ các liên kết bạn đưa hoặc từ lịch sử của một tài khoản, rồi lưu kết quả vào tệp. Agent không bao giờ thao tác ứng dụng WeChat của bạn và không bao giờ in thông tin đăng nhập.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
WeChat MP Batch Exporter
Core Rule
Never operate the user's WeChat UI. Do not publish, delete, mass-send, follow, unfollow, send messages, or click inside WeChat. For any workflow requiring WeChat desktop, tell the user exactly what to do and wait for confirmation.
Never print raw cookies, auth-key, token, pass_ticket, key, uin, credentials JSON, or QR login secrets in chat or saved reports.
Downloaded article content belongs to the original authors or rights holders. Use exports only within the user's lawful/private-use scope unless the user confirms they have permission to republish or redistribute.
First Step
Run the local doctor before choosing a workflow:
python3 {baseDir}/scripts/doctor.py
Use --check-network only when the task needs the public exporter API or online download endpoint.
Decision Tree
- User provides known article URLs and only needs正文/Markdown: use
scripts/download_urls.py; no login or WeChat action is required. - User wants a public account's历史文章列表 or latest N articles: use exporter mode from
wechat-article-exporter; this requires a user-owned WeChat Official Account backend login/auth-key. - User needs阅读量、点赞、转发、评论、评论回复: use
wxdown-servicecredentials flow first, then export enhanced fields fromwechat-article-exporter. - User says“不登录”“代理模式” or exporter mode fails: use the proxy/history fallback only after explicit confirmation; read
references/manual-gates.mdfirst.
For simple single-URL extraction without batch/enhanced needs, prefer the existing $wechat-article skill.
Count Discipline
Never report a public account total as just “N 篇文章” until the count scope is clear.
After any history sync or imported history JSON, run:
python3 {baseDir}/scripts/analyze_history.py --history-json /path/to/history.dedup.json
python3 {baseDir}/scripts/analyze_history.py --chunk-dir /path/to/chunks --output-dir /path/to/output
Use these labels in user-facing answers:
publish_groups: uniquemsgidvalues; roughly one WeChat publish/message group.expanded_url_items: every unique article URL after expanding multi-article messages.original_articles: frontend-style original article count, usingcopyright_type=1,copyright_stat=1, andis_deleted=false.
If counts disagree with what the user sees in WeChat, explain the scope difference first and point to the generated history.summary.json / history.summary.md.
Known-URL Body Download
Use this path for pasted URLs, .txt, .csv, or .json URL lists:
python3 {baseDir}/scripts/download_urls.py --file /path/to/urls.txt --format markdown
python3 {baseDir}/scripts/download_urls.py "https://mp.weixin.qq.com/s/..."
Report only: success count, failure count, failed URLs, output directory, and index.csv.
Default output:
~/Downloads/wechat-mp-batch/<run-id>/
|-- index.csv
|-- errors.json
`-- articles/
`-- 001-<safe-title>.md
History And Enhanced Export
Read references/exporter-workflow.md before running exporter/history/enhanced-data tasks.
Start the local credential helper with:
python3 {baseDir}/scripts/start_wxdown_service.py
Use the mature upstream stack:
wechat-article/wechat-article-exporterfor account search, article history, body download, and multi-format export.wechat-article/wxdown-servicefor user-owned credential capture needed by read/comment metrics.
Local source paths are environment-specific. Prefer environment variables or explicit script flags:
export WECHAT_ARTICLE_EXPORTER_DIR=/path/to/wechat-article-exporter
export WXDOWN_SERVICE_DIR=/path/to/wxdown-service
python3 {baseDir}/scripts/doctor.py --exporter-path "$WECHAT_ARTICLE_EXPORTER_DIR" --wxdown-path "$WXDOWN_SERVICE_DIR"
python3 {baseDir}/scripts/start_wxdown_service.py --wxdown-dir "$WXDOWN_SERVICE_DIR"
If using the public exporter, default base URL is:
https://down.mptext.top
Manual Gates
Read references/manual-gates.md whenever the task involves login, credentials, comments, read counts, proxy, certificate trust, or WeChat desktop.
These actions always require explicit user confirmation:
- Scanning a QR code and selecting the user's Official Account or service account.
- Installing or trusting a mitmproxy certificate.
- Enabling or changing macOS system proxy settings.
- Asking the user to open an article/history page inside WeChat desktop and scroll.
- Using a pasted auth-key or credentials file.
Câu hỏi thường gặp
Nó có đăng hoặc thay đổi gì trong WeChat không?
Không. Skill nói không bao giờ đăng, xóa, gửi tin nhắn hay nhấp vào bất cứ thứ gì trong WeChat.
Tôi có cần đăng nhập để tải nội dung bài viết không?
Không. Các liên kết bài viết đã biết có thể tải mà không cần đăng nhập, nhưng lịch sử tài khoản và số liệu cần thông tin đăng nhập tài khoản của bạn.
Tôi có thể đăng lại các bài viết đã xuất không?
Chỉ cho mục đích sử dụng riêng hợp pháp, trừ khi chủ bản quyền đã cho phép đăng lại.
Chi tiết
Mô tả gốc của tác giả
批量下载微信公众号文章正文、历史文章列表、原创文章筛选、历史计数口径、阅读量、点赞/转发等指标、评论和评论回复。Use when the user asks to batch fetch mp.weixin.qq.com articles, export WeChat public-account history, distinguish publish groups vs expanded article URLs vs original articles, use wechat-article-exporter, use wxdown-service credentials, collect read/comment metrics, or create an archive for Obsidian/Feishu/local analysis. Do not use for ordinary one-off article summarization unless batch/enhanced data is requested.
repo: mcncarl/yichen-skills
Độ phổ biến
- Sao GitHub
- 5.2k
- Vị trí xếp hạng
- #15038
- Giấy phép
- —
- Cập nhật
- 1/11/2026
Bình luận
- …
Thêm skill từ kho mã này
yichen-grok-consult
5.2kCho phép agent của bạn hỏi xAI Grok để có ý kiến thứ hai, nhận xét, hoặc tìm kiếm trên web và X, trong khi AI chính vẫn giữ quyền kiểm soát.
yichen-chatgpt-web-research
5.2kCho phép agent của bạn dùng tài khoản ChatGPT trên web đã đăng nhập, gồm các mô hình Pro, để nghiên cứu sản phẩm, thị trường hoặc đối thủ.
yichen-codex-chatgpt
5.2kCho phép agent của bạn làm việc với ChatGPT như người thiết kế và người rà soát một dự án cục bộ, trong khi Codex viết và kiểm thử mã.
yichen-mac-wechat-dual-open
5.2kGiúp agent của bạn thiết lập một ứng dụng WeChat thứ hai trên Mac, để hai tài khoản WeChat có thể mở cùng lúc.
Skill tương tự
tavily
394kGiúp agent của bạn tìm kiếm web bằng Tavily và lấy văn bản từ các trang cụ thể, với tùy chọn về độ sâu, tên miền và ngày tháng.
blogwatcher
394kCho phép agent của bạn theo dõi blog và nguồn cấp RSS hoặc Atom, kiểm tra bài viết mới và đánh dấu những bài bạn đã đọc.
data-scraper-agent
280kGiúp agent tự động thu thập dữ liệu từ mọi nguồn công khai. Có thể lên lịch, bổ sung thông tin và lưu kết quả. Hữu ích để theo dõi dữ liệu trực tuyến.