Skip to main content

Read NexusPHP private-tracker torrents from the terminal as Markdown or JSON.

Project description

nexus-cli

Read NexusPHP private-tracker torrents from the terminal as Markdown (default) or JSON.

There is no official NexusPHP data API — this scrapes the server-rendered torrents.php / details.php pages using your logged-in session cookie, and uses your passkey (auto-discovered from any page) for .torrent downloads.

Install

uv tool install nexusphp-cli   # or: pipx install nexusphp-cli

The installed command is nexusphp. From a checkout you can also run it with uv run nexusphp ....

Auth

Grab the access_token cookie value from your browser (DevTools → Application → Cookies) and export it together with the site URL:

export NEXUS_BASE='https://your-tracker.example'   # required (or pass --base)
export NEXUS_TOKEN='eyJ0eXAiOiJKV1Qi...'           # required (or pass --token)
export NEXUS_PASSKEY='...'                          # optional, auto-discovered

Usage

uv run nexusphp search "人生切割术"                 # Markdown list
uv run nexusphp search "人生切割术" --json          # JSON
uv run nexusphp search "severance" --cat tv,anime --incldead 1
uv run nexusphp search "office" --area subtitle --mode exact
uv run nexusphp details 472747                     # single torrent
uv run nexusphp details 472747 --json
uv run nexusphp url 472747                          # print download URL (incl. passkey)
uv run nexusphp download 472747 -o sev.torrent      # save the .torrent file

Or install it as a tool:

uv tool install .
nexusphp search "无职转生" -j | jq '.torrents[] | {id, title, seeders, size}'

Commands

Command Description
search <query> Search torrents. --area title/subtitle/uploader/imdb/douban, --mode and/or/exact, --cat, --incldead 0/1/2, -p/--page (0-indexed)
details <id> Torrent detail page (name, size, subtitle, imdb, ...)
url <id> Print the download.php URL including your passkey (nothing is saved)
download <id> Fetch that URL and save the .torrent file (-o for filename)

Global: --base, --token, -j/--json.

Categories

movie tv show doc anime music mv sport software game material misc mobile (or pass numeric NexusPHP cat ids). Comma-separate for multiple.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nexusphp_cli-0.1.0.tar.gz (8.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nexusphp_cli-0.1.0-py3-none-any.whl (10.2 kB view details)

Uploaded Python 3

File details

Details for the file nexusphp_cli-0.1.0.tar.gz.

File metadata

  • Download URL: nexusphp_cli-0.1.0.tar.gz
  • Upload date:
  • Size: 8.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for nexusphp_cli-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b4e4f973c9c60760ca9580f2a91f95a4265a822442ea593f782a4839f41f55e8
MD5 3e9809c78ba56348317e44e857976be9
BLAKE2b-256 35e65a3739db0c06083e17de3f208cc1e7485f469e6f208d564219253ef6ced5

See more details on using hashes here.

File details

Details for the file nexusphp_cli-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: nexusphp_cli-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 10.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for nexusphp_cli-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8d780f07f7c2e5fc1d5a411826c4e6d0906e849080a3fd0dbead37e42c5f11b0
MD5 093654cbd75ac1896bf79ea27c2abbbc
BLAKE2b-256 ab01be3a2b25fc9e6abfcdc59dbf0352836dbe32b7389086fc2b7e5cec5e2d97

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page