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
{
"sites": {
"mySite": {
"url": "https://pt.example.com",
"cookie": "c_secure_uid=xxx; c_secure_pass=xxx"
}
}
}
Usage
1. Search Torrents
# 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>ordownload.php?id=<id>&passkey=<passkey>
Extract:
- Torrent ID
- Download URL (may need passkey)
- Title, size, seeders/leechers
3. Download Torrent
# 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:
# Add downloaded torrent
./scripts/qbit-api.sh add-file /tmp/torrent.torrent --category "PT"
Or by magnet/URL:
./scripts/qbit-api.sh add "magnet:?xt=..." --category "PT"
Workflow
- Ask user which PT site and search term
- Load credentials from
sites.json - 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