← Back to Skills Marketplace
beancookie

magnet-search

by LuZhong · GitHub ↗ · v2.0.1 · MIT-0
cross-platform ⚠ suspicious
127
Downloads
1
Stars
0
Active Installs
2
Versions
Install in OpenClaw
/install magnet-search
Description
搜索电影磁力下载链接。接入真实磁力搜索引擎 API (ThePirateBay, Nyaa等),返回高质量的种子链接。用于合法的个人学习和研究目的。
README (SKILL.md)

\r \r

Magnet Search 🔍 v2.0\r

\r 接入真实磁力搜索引擎 API 的电影磁力链接搜索工具。\r \r

⚠️ 免责声明\r

\r 本工具仅供个人学习和研究使用\r

  • 请遵守当地法律法规\r
  • 尊重版权,支持正版\r
  • 用户需自行承担使用风险\r \r

✨ 功能特点\r

\r

  • ✅ 接入真实 API (ThePirateBay, Nyaa)\r
  • ✅ 自动提取视频质量信息 (1080p/720p/4K)\r
  • ✅ 按种子健康度排序\r
  • ✅ 支持 JSON 输出\r
  • ✅ 多源搜索,自动去重\r
  • ✅ 内置免责声明\r \r

🚀 使用方法\r

\r

命令行\r

\r

# 搜索电影\r
python3 magnet-search.py "电影名称"\r
\r
# 限制结果数量\r
python3 magnet-search.py "电影名称" --limit 10\r
\r
# JSON 输出\r
python3 magnet-search.py "电影名称" --json\r
\r
# 降低种子数阈值(更多结果)\r
python3 magnet-search.py "电影名称" --min-seeders 1\r
```\r
\r
### 作为 Skill 使用\r
\r
在 OpenClaw 中直接请求:\r
- "搜索电影《XXX》的磁力链接"\r
- "帮我找《XXX》的下载资源"\r
\r
## 🔍 数据源\r
\r
| 源 | 类型 | 状态 |\r
|----|------|------|\r
| ThePirateBay (apibay.org) | 电影/软件/其他 | ✅ 可用 |\r
| Nyaa | 动漫/日剧 | ✅ 可用 |\r
| TorrentGalaxy | 电影/剧集 | ⏳ 待完善 |\r
| 1337x | 综合 | ⏳ 需绕过 CF |\r
\r
## 📋 输出格式\r
\r
```\r
🔍 正在搜索: 电影名称\r
============================================================\r
  搜索 ThePirateBay...\r
  搜索 Nyaa...\r
\r
✅ 找到 5 个结果:\r
\r
1. [电影名称 2024 1080p BluRay]\r
   🎬 质量: 1080p\r
   💾 大小: 2.50 GB\r
   🌱 种子: 150 | 🧲 下载: 75\r
   📅 上传: 2024-03-15\r
   🔗 磁力链接:\r
      magnet:?xt=urn:btih:...\r
   📡 来源: TPB\r
\r
2. ...\r
```\r
\r
## 🛠️ 相关工具\r
\r
- `transmission-cli` - 命令行 BT 客户端\r
- `aria2c` - 支持磁力链接的下载工具\r
- `qbittorrent` - 带 Web UI 的 BT 客户端\r
\r
## 📝 技术说明\r
\r
- 使用 `apibay.org` API (TPB 镜像)\r
- 使用 Nyaa RSS API\r
- 自动处理 SSL 证书验证\r
- 支持中文搜索(自动 URL 编码)\r
\r
## ⚡ 故障排除\r
\r
**无结果?**\r
- 尝试使用英文名称搜索\r
- 降低 `--min-seeders` 阈值\r
- 检查网络连接\r
\r
**连接超时?**\r
- 某些源可能需要代理\r
- 增加 `--timeout` 参数(默认 15 秒)\r
Usage Guidance
This skill is designed to search torrent/magnet sources and network requests to torrent sites are expected. Before installing, consider: (1) Legal: searching/downloading copyrighted torrents may be illegal in your jurisdiction — only use for legitimate content. (2) Security: the script disables TLS verification (MITM risk); do not run it on sensitive networks without fixing that. (3) Code quality: the included Python has clear bugs and may crash or behave unexpectedly. Recommendations: inspect the full, untruncated source; insist the author remove or justify disabled SSL verification (enable proper certificate validation), and fix syntax errors; run the script only in a sandboxed environment; or prefer a maintained/verified alternative from a trusted source.
Capability Analysis
Type: OpenClaw Skill Name: magnet-search Version: 2.0.1 The skill is a torrent search aggregator that contains a security vulnerability by explicitly disabling SSL certificate verification (ssl.CERT_NONE) in magnet-search.py, which exposes the agent to potential Man-in-the-Middle (MITM) attacks. Additionally, the script contains a significant syntax error in the search_yts method that would prevent it from executing correctly. No evidence of intentional malicious behavior, data exfiltration, or prompt injection was found.
Capability Assessment
Purpose & Capability
The name/description (search magnet/torrent links from TPB, Nyaa, etc.) aligns with the code and SKILL.md: the script queries public torrent search APIs and RSS feeds and builds magnet URIs. That capability legitimately requires network access to those sites. However, the SKILL.md claims '自动处理 SSL 证书验证' while the code disables TLS certificate validation (ssl.CERT_NONE), which is inconsistent and risky.
Instruction Scope
SKILL.md instructs only to run the script or call the skill, which is consistent with an instruction-only tool. The runtime instructions do not ask for unrelated local files or credentials. However, the Python implementation (included) makes arbitrary outbound HTTP(S) requests to multiple third-party sites and explicitly disables certificate verification, creating a risk of man-in-the-middle interception. Additionally, the provided Python source contains clear syntax/logic issues (malformed r.append call in search_yts and the distributed file appears truncated), indicating it may crash or behave unexpectedly.
Install Mechanism
No install spec is provided (instruction-only), so nothing is automatically written to disk beyond the included script. This is the lower-risk install pattern. The script itself will perform network I/O when run.
Credentials
The skill declares no required environment variables, credentials, or config paths and the SKILL.md does not request secrets. The included code does not appear to read environment credentials. No disproportionate credential access is requested.
Persistence & Privilege
The skill does not request always:true and uses default invocation behavior. There is no evidence it attempts to persistently modify other skills or system-wide agent settings.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install magnet-search
  3. After installation, invoke the skill by name or use /magnet-search
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v2.0.1
magnet-search v2.0.1 - No changes detected; this is a version bump with no file modifications.
v2.0.0
Magnet Search 2.0.0 introduces real API integration and improved features: - Now connects to ThePirateBay and Nyaa for real-time, high-quality magnet link searches. - Automatically extracts and displays video quality (1080p/720p/4K). - Sorts results by torrent health (seeders) and deduplicates across sources. - Supports JSON output and customizable search options (limit results, seeders threshold). - Disclaimer and usage guidelines included for legal, educational use.
Metadata
Slug magnet-search
Version 2.0.1
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 2
Frequently Asked Questions

What is magnet-search?

搜索电影磁力下载链接。接入真实磁力搜索引擎 API (ThePirateBay, Nyaa等),返回高质量的种子链接。用于合法的个人学习和研究目的。 It is an AI Agent Skill for Claude Code / OpenClaw, with 127 downloads so far.

How do I install magnet-search?

Run "/install magnet-search" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is magnet-search free?

Yes, magnet-search is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does magnet-search support?

magnet-search is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created magnet-search?

It is built and maintained by LuZhong (@beancookie); the current version is v2.0.1.

💬 Comments