TopRank Skills

Home / Claw Skills / 数据解析 / pt-site
Official OpenClaw rules 54%

pt-site

Search and download torrents from NexusPHP-based PT sites, then add to qBittorrent. Use when user wants to search a specific PT site, download torrent, or find seeds on a private tracker.

Stars

0

Installs

0

Status

ACTIVE

Visibility

PUBLIC

安装方式

直接复制以下提示词,发送给你的 AI 助手即可完成安装。

请先检查是否已安装 SkillHub 商店,若未安装,请根据 https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/skillhub.md 安装 SkillHub 商店,然后安装 pt-site 技能。 若已安装,则直接安装 pt-site 技能。

Overview

Skill Key
fengqi/pt-site
Author
fengqi
Source Repo
openclaw/skills
Version
-
Source Path
skills/fengqi/pt-site
Latest Commit SHA
0a2a5c7386339785da0016b33ef55312fc2fd8ac

Extracted Content

SKILL.md excerpt

# PT Site - NexusPHP Torrent Search & Download

Search torrents on NexusPHP-based private trackers, download .torrent files, and add them to qBittorrent.

## Setup

Credentials: `~/.clawdbot/credentials/pt-site/sites.json`

```json
{
  "sites": {
    "mySite": {
      "url": "https://pt.example.com",
      "cookie": "c_secure_uid=xxx; c_secure_pass=xxx"
    }
  }
}
```

## Usage

### 1. Search Torrents

```bash
# Search using browser or web_fetch
browser action=open targetUrl="https://pt.example.com/torrents.php?search=keyword&search_type=0"
```

Or use the site's search API if available.

### 2. Parse Results

NexusPHP torrent pages typically have:
- Table with class `torrents`
- Columns: `#`, `Type`, `Title`, `Download`, `Size`, `Seeders`, `Leechers`, `Complete`
- Download link: `download.php?id=<id>` or `download.php?id=<id>&passkey=<passkey>`

Extract:
- Torrent ID
- Download URL (may need passkey)
- Title, size, seeders/leechers

### 3. Download Torrent

```bash
# Download with curl, include Cookie header
curl -L -o /tmp/torrent.torrent "https://pt.example.com/download.php?id=123" \
  -H "Cookie: c_secure_uid=xxx; c_secure_pass=xxx"
```

### 4. Add to qBittorrent

Use qbittorrent skill:

```bash
# Add downloaded torrent
./scripts/qbit-api.sh add-file /tmp/torrent.torrent --category "PT"
```

Or by magnet/URL:
```bash
./scripts/qbit-api.sh add "magnet:?xt=..." --category "PT"
```

## Workflow

1. **Ask user** which PT site and search term
2. **Load credentials** from `sites.json`
3. **Search** via browser or direct URL
4. **Present results** (title, size, seeds, leeches)
5. **User selects** which torrent to download
6. **Download** .torrent file
7. **Add to qBittorrent** using qbittorrent skill

## Notes

- Many NexusPHP sites require passkey for download - may need to extract from user's profile
- Respect site rules - don't spam requests
- Store torrents in `/tmp/` with unique names to avoid conflicts

Related Claw Skills