torr

majiayu000 的头像作者 majiayu000

使用 ArcTorrent API 和 WebTorrent 搜索和下载 torrent。当用户请求执行以下操作时使用:(1) 跨多个源搜索 torrent,(2) 通过磁力链接下载内容,(3) 查找按播种者计数筛选的 torrent,或任何与 torrent 相关的任务

📖 中文导读:使用 ArcTorrent API 和 WebTorrent 搜索和下载 torrent。当用户请求执行以下操作时使用:(1) 跨多个源搜索 torrent,(2) 通过磁力链接下载内容,(3) 查找按播种者计数筛选的 torrent,或任何与 torrent 相关的任务 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。

name: torr description: Search and download torrents using ArcTorrent API and WebTorrent. Use when users request to: (1) Search for torrents across multiple sources, (2) Download content via magnet links, (3) Find torrents filtered by seeder counts, or any torrent-related tasks

Torrent Search & Download

Prerequisites

  • ArcTorrent API at http://localhost:3000
    # Clone to /tmp and start
    cd /tmp && git clone https://github.com/theriturajps/ArcTorrent
    cd ArcTorrent && npm install && npm start &
    
  • jq for JSON parsing
scripts/search.sh <source> "<query>" [page]
scripts/search.sh piratebay "ubuntu iso" 1
scripts/search.sh yts "big buck bunny" 1

Sources

List available sources:

scripts/search.sh --list-sources
# First result
scripts/search.sh piratebay "ubuntu" 1 | head -1 | cut -f4

# Filter by seeders (>10), get first magnet
scripts/search.sh piratebay "ubuntu" 1 | awk -F'\t' '$3+0 > 10 {print $4; exit}'

Download

# Basic download
node scripts/download.js "magnet:?xt=urn:btih:..." /tmp/downloads

# With custom timeout (default: 10800s)
node scripts/download.js "magnet:?xt=urn:btih:..." /tmp/downloads --timeout 3600

# JSON output for automation
node scripts/download.js "magnet:?xt=urn:btih:..." /tmp/downloads --json

Complete Workflow

MAGNET=$(scripts/search.sh piratebay "ubuntu iso" 1 | head -1 | cut -f4)
node scripts/download.js "$MAGNET" /tmp/downloads

Troubleshooting

Issue Fix
API not responding cd /tmp/ArcTorrent && npm start &
Download slow/hangs Filter for seeders > 20; try different source