yichen-wechat-mp-batch-exporter
하는 일
WeChat 공식 계정 기사의 본문을 가져오고, 개인 기록을 위해 기사 목록과 지표를 내보낼 수 있습니다. 개인적으로 쓰려고 공개 계정 글의 로컬 사본을 원하는 사람을 위한 스킬입니다.
사용하는 경우
- ✓특정 WeChat 공식 계정 기사의 본문을 저장하고 싶을 때.
- ✓공식 계정의 과거 기사 목록을 파일로 내보내고 싶을 때.
- ✓WeChat 계정 기사의 읽기 수와 댓글 수를 알고 싶을 때.
스킬 링크
https://github.com/mcncarl/yichen-skills/blob/main/yichen-wechat-mp-batch-exporter/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“이 WeChat 기사 세 개의 전체 본문을 오프라인에서 읽을 수 있도록 Markdown 파일로 내려받아 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트가 로컬 점검 도구를 실행한 뒤, 여러분이 준 링크나 계정 기록에서 기사 본문을 가져와 파일로 저장합니다. WeChat 앱은 절대 조작하지 않으며, 로그인 비밀 정보도 출력하지 않습니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
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.
자주 묻는 질문
WeChat에서 무엇인가를 게시하거나 바꾸나요?
아니요. 스킬은 WeChat 안에서 게시, 삭제, 메시지 전송, 클릭을 하지 말라고 말합니다.
기사 본문을 내려받는 데 로그인이 필요한가요?
아니요. 알려진 기사 링크는 로그인 없이 내려받을 수 있지만, 계정 기록과 지표는 여러분의 계정 인증 정보가 필요합니다.
내보낸 기사를 다시 게시해도 되나요?
합법적인 개인 사용에 한해서만 가능하며, 권리자가 재게시를 허락한 경우는 예외입니다.
상세 정보
작성자의 원본 설명
批量下载微信公众号文章正文、历史文章列表、原创文章筛选、历史计数口径、阅读量、点赞/转发等指标、评论和评论回复。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
인기도
- GitHub 스타
- 5.2k
- 순위
- #15038
- 라이선스
- —
- 업데이트
- 2026. 11. 1.
댓글
- …
이 저장소의 다른 스킬
yichen-grok-consult
5.2k에이전트가 xAI Grok에게 두 번째 의견, 검토, 웹이나 X 검색을 요청하도록 돕고, 주 AI가 계속 주도권을 갖습니다.
yichen-chatgpt-web-research
5.2k에이전트가 로그인된 ChatGPT 웹 계정(Pro 모델 포함)을 사용해 제품, 시장, 경쟁사 조사를 하도록 돕습니다.
yichen-codex-chatgpt
5.2k에이전트가 ChatGPT를 로컬 프로젝트의 설계자이자 검토자로 쓰도록 돕고, Codex는 코드를 작성하고 테스트합니다.
yichen-mac-wechat-dual-open
5.2k에이전트가 Mac에 두 번째 WeChat 앱을 설정하도록 돕습니다. WeChat 계정 두 개를 동시에 열 수 있게 합니다.