Install
openclaw skills install whatslink查询公开下载/磁力/种子链接的 WhatsLink 元数据,默认只列出摘要与截图 URL,不下载不打开。
openclaw skills install whatslink当用户想在打开或下载前了解公开链接的大致内容时使用本 skill。它调用 whatslink.info 的公开 API,返回识别到的内容类型、文件名、文件数量、总大小,以及可能存在的截图 URL。
English note: this skill inspects public links through the WhatsLink metadata API. It is not a downloader.
GET https://whatslink.info/api/v1/link?url=<encoded-url>url(必填 string):要检查的公开链接。error(string):非空表示查询失败。type(string):链接内容类型。file_type(string):例如 unknown、folder、video、text、image、audio、archive、font、document。name(string):内容/资源名称。size(number):总字节数。count(number):包含文件数。screenshots(array 或 null):截图对象,常见字段为 time 和 screenshot URL。脚本使用 Python 3 标准库,无需额外依赖。
cd /root/.openclaw/workspace/skills/whatslink
python3 scripts/whatslink_query.py 'https://example.com/file.torrent'
python3 scripts/whatslink_query.py --json 'https://example.com/file.torrent'
python3 scripts/whatslink_query.py --no-screenshots 'https://example.com/file.torrent'
python3 scripts/whatslink_query.py --max-screenshots 3 'https://example.com/file.torrent'
python3 scripts/whatslink_query.py --timeout 10 --user-agent 'OpenClaw/whatslink' 'https://example.com/file.torrent'
参数:
url:必填,要查询的公开 URL。--json:输出 WhatsLink 原始 JSON 响应;保持原始结构,不做摘要格式化。--no-screenshots:在人类可读摘要中隐藏截图 URL。--max-screenshots N:限制摘要中展示的截图 URL 数量;默认展示全部;0 表示不列出 URL。--timeout:请求超时时间,默认 20 秒。--endpoint:API endpoint,默认 https://whatslink.info/api/v1/link;主要用于测试或替代服务。--user-agent:可选自定义 User-Agent。默认 UA 版本为 OpenClaw-whatslink-skill/0.1.1。scripts/whatslink_query.py 获取稳定输出。--json。cd /root/.openclaw/workspace/skills/whatslink
python3 scripts/whatslink_query.py 'https://releases.ubuntu.com/24.04/ubuntu-24.04.2-desktop-amd64.iso.torrent'
摘要通常包含:
--no-screenshots 和 --max-screenshots;中文文档与隐私说明增强;UA 更新到 0.1.1。