PT Site - NexusPHP Torrent Search & Download
Search torrents on NexusPHP-based private trackers, download .torrent files, and add them to qBittorrent.
Setup
Credentials: INLINECODE0
CODEBLOCK0
Usage
1. Search Torrents
CODEBLOCK1
Or use the site's search API if available.
2. Parse Results
NexusPHP torrent pages typically have:
- - Table with class INLINECODE1
- Columns:
#, Type, Title, Download, Size, Seeders, Leechers, INLINECODE9 - Download link:
download.php?id=<id> or INLINECODE11
Extract:
- - Torrent ID
- Download URL (may need passkey)
- Title, size, seeders/leechers
3. Download Torrent
CODEBLOCK2
4. Add to qBittorrent
Use qbittorrent skill:
CODEBLOCK3
Or by magnet/URL:
CODEBLOCK4
Workflow
- 1. Ask user which PT site and search term
- Load credentials from INLINECODE12
- Search via browser or direct URL
- Present results (title, size, seeds, leeches)
- User selects which torrent to download
- Download .torrent file
- 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
技能名称: pt-site
详细描述:
PT Site - NexusPHP种子搜索与下载
在基于NexusPHP的私有Tracker上搜索种子,下载.torrent文件,并将其添加到qBittorrent中。
设置
凭据文件:~/.clawdbot/credentials/pt-site/sites.json
json
{
sites: {
mySite: {
url: https://pt.example.com,
cookie: csecureuid=xxx; csecurepass=xxx
}
}
}
使用方法
1. 搜索种子
bash
使用浏览器或web_fetch进行搜索
browser action=open targetUrl=https://pt.example.com/torrents.php?search=关键词&search_type=0
或者使用站点提供的搜索API(如果可用)。
2. 解析结果
NexusPHP种子页面通常包含:
- - 类名为torrents的表格
- 列:#、类型、标题、下载、大小、做种数、下载数、完成数
- 下载链接:download.php?id= 或 download.php?id=&passkey=
提取内容:
- - 种子ID
- 下载URL(可能需要passkey)
- 标题、大小、做种数/下载数
3. 下载种子
bash
使用curl下载,包含Cookie头
curl -L -o /tmp/torrent.torrent https://pt.example.com/download.php?id=123 \
-H Cookie: c
secureuid=xxx; c
securepass=xxx
4. 添加到qBittorrent
使用qbittorrent技能:
bash
添加已下载的种子
./scripts/qbit-api.sh add-file /tmp/torrent.torrent --category PT
或者通过磁力链接/URL添加:
bash
./scripts/qbit-api.sh add magnet:?xt=... --category PT
工作流程
- 1. 询问用户要使用的PT站点和搜索关键词
- 加载凭据从sites.json中
- 搜索通过浏览器或直接URL
- 展示结果(标题、大小、做种数、下载数)
- 用户选择要下载的种子
- 下载.torrent文件
- 添加到qBittorrent使用qbittorrent技能
注意事项
- - 许多NexusPHP站点需要passkey才能下载——可能需要从用户个人资料中提取
- 遵守站点规则——不要发送垃圾请求
- 将种子文件存储在/tmp/目录下,使用唯一名称以避免冲突