SkillsGrove
SkillsGrove/생산성/wlzh/skills/wespy-fetcher

wespy-fetcher

설치

$npx skills add https://github.com/wlzh/skills --skill wespy-fetcher
$git clone --depth 1 https://github.com/wlzh/skills.git /tmp/skills && mkdir -p ~/.claude/skills && cp -r /tmp/skills/wespy-fetcher ~/.claude/skills/wespy-fetcher
이 Agent Skill을 설치해 주세요: https://github.com/wlzh/skills/tree/0033febb02fce2b1b6feb258ccf2bd0e1bd5d316/wespy-fetcher — 먼저 SKILL.md와 스크립트를 읽고, 안전하다고 확인한 뒤에만 제 skills 폴더에 설치해 주세요.

요약

원문 설명 · MIT获取并转换微信公众号/网页文章为 Markdown 的封装 Skill,完整支持 WeSpy 的单篇抓取、微信专辑批量下载、专辑列表获取、HTML/JSON/Markdown 多格式输出。Use when user asks to 抓取微信公众号文章、公众号专辑批量下载、URL 转 Markdown、保存微信文章、mp.weixin.qq.com to markdown.
아래 SKILL.md는 wlzh/skills(커밋 0033feb)에서 MIT 라이선스에 따라 게시한 것입니다. 본문은 변경하지 않았으며, 파일 상단의 메타데이터만 생략하고 이미지는 링크로 표시하며 매우 긴 파일은 일부만 표시합니다. Copyright 2024 wlzh. 라이선스: LICENSE. 지침 파일만 표시되며 스크립트 등은 원본 저장소를 참고하세요.

WeSpy Fetcher

封装 tianchangNorth/WeSpy 的完整能力。

功能范围(与 WeSpy 对齐)

  • 单篇文章抓取(微信公众号 / 通用网页 / 掘金)
  • 微信专辑文章列表获取(--album-only)
  • 微信专辑批量下载(--max-articles)
  • 多格式输出(Markdown 默认,支持 HTML / JSON / 全部)
  • 交互模式(不传 URL 时)

依赖来源

  • 上游项目:https://github.com/tianchangNorth/WeSpy
  • 本地约定克隆目录:~/Documents/QNSZ/project/WeSpy

使用

脚本位置:scripts/wespy_cli.py

# 查看帮助
python3 scripts/wespy_cli.py --help

# 单篇文章(默认输出 markdown)
python3 scripts/wespy_cli.py "https://mp.weixin.qq.com/s/xxxxx"

# 输出 markdown + html
python3 scripts/wespy_cli.py "https://mp.weixin.qq.com/s/xxxxx" --html

# 输出 markdown + json
python3 scripts/wespy_cli.py "https://mp.weixin.qq.com/s/xxxxx" --json

# 输出所有格式
python3 scripts/wespy_cli.py "https://mp.weixin.qq.com/s/xxxxx" --all

# 专辑只拉列表
python3 scripts/wespy_cli.py "https://mp.weixin.qq.com/mp/appmsgalbum?..." --album-only --max-articles 20

# 专辑批量下载
python3 scripts/wespy_cli.py "https://mp.weixin.qq.com/mp/appmsgalbum?..." --max-articles 20 --all

参数

透传 WeSpy 原生命令参数:

  • url
  • -o, --output
  • -v, --verbose
  • --html
  • --json
  • --all
  • --max-articles
  • --album-only

实现说明

  • 优先使用本地源码路径 ~/Documents/QNSZ/project/WeSpy
  • 若本地不存在则自动执行 git clone 到该目录
  • 通过导入 wespy.main.main 直接调用上游 CLI,保持行为一致
라이선스 전문 보기(MIT)
MIT License

Copyright (c) 2024 wlzh

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.