返回顶部
c

clipper

Save web content to Obsidian vault. Supports Twitter/X, WeChat MP, Xiaohongshu, YouTube, Bilibili, and any web page. Automatically routes to the best fetch method per platform.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
75
下载量
0
收藏
概述
安装方式
版本历史

clipper

# Clipper Unified web content clipper for Obsidian. One entry point, auto-detects platform, uses optimal method. ## Usage When user provides a URL and wants to save it: ```bash python3 {{SKILL_DIR}}/scripts/clip.py "<url>" ``` **Output:** - Twitter: `<vault>/clippings/tweet/YYYY-MM-DD-<handle>-<id>.md` - Other: `<vault>/clippings/web/<domain>/YYYY-MM-DD-<slug>.md` ## Platform Routing | Platform | Method | Why | |----------|--------|-----| | Twitter/X | Jina Reader | Fast, reliable, no auth needed | | WeChat MP | Browser snapshot | Handles JS rendering | | Xiaohongshu | x-reader | Works well | | YouTube | x-reader | Gets description/metadata | | Bilibili | x-reader | Works well | | Other | x-reader | General purpose | ## Workflows ### Twitter / General Web (Auto) ```bash python3 {{SKILL_DIR}}/scripts/clip.py "https://x.com/user/status/123" ``` One command, done. ### WeChat MP (Two-step) WeChat articles need browser rendering. The script will return `needs_browser: true`. **Step 1:** Open in browser ``` browser action=open profile=openclaw targetUrl=<url> ``` **Step 2:** Get snapshot ``` browser action=snapshot profile=openclaw targetId=<targetId> ``` **Step 3:** Extract content and save ```bash python3 {{SKILL_DIR}}/scripts/wechat.py \ --url "<url>" \ --title "<title>" \ --author "<author>" \ --date "<date>" \ --content "<markdown>" ``` Or pipe content via stdin: ```bash echo "<markdown>" | python3 {{SKILL_DIR}}/scripts/wechat.py \ --url "<url>" \ --title "<title>" ``` ## Supported URL Formats **Twitter:** - `https://twitter.com/<handle>/status/<id>` - `https://x.com/<handle>/status/<id>` **WeChat:** - `https://mp.weixin.qq.com/s/<id>` **Others:** - Any valid HTTP/HTTPS URL ## Requirements - `obsidian-cli` (for vault detection) OR manually configured vault path - `x-reader` for general web: `pipx install 'git+https://github.com/runesleo/x-reader.git'` ## Example ``` User: https://x.com/naval/status/1234567890 save this You: [runs clip.py] → Saved to clippings/tweet/2026-03-18-naval-1234567890.md User: https://mp.weixin.qq.com/s/abc123 保存这个 You: [runs clip.py] → needs_browser: true [opens browser, gets snapshot] [extracts content, runs wechat.py] → Saved to clippings/web/mp_weixin_qq_com/2026-03-18-article-title.md ``` ## Git Sync All saves trigger automatic git sync: `pull --rebase → add → commit → push` Git warnings (non-fatal) are returned in `git_warnings` array.

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 clipper-1776023831 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 clipper-1776023831 技能

通过命令行安装

skillhub install clipper-1776023831

下载 Zip 包

⬇ 下载 clipper v1.0.0

文件大小: 9.14 KB | 发布时间: 2026-4-13 09:47

v1.0.0 最新 2026-4-13 09:47
Initial release

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部