Skip to main content

CLI downloader for SubsPlease.org anime releases with tmux session management

Project description

subsplease-dl

A pip-installable CLI downloader for SubsPlease.org with tmux session management — inspired by animepahe-dl-tmux.

pip install subsplease-dl

Requirements

  • Python 3.9+
  • A torrent client: aria2c (recommended), webtorrent-cli, or transmission-cli
  • tmux for background download sessions (optional but recommended)

Install aria2 (recommended torrent client):

# Ubuntu/Debian
sudo apt install aria2

# macOS
brew install aria2

# Or use webtorrent-cli
npm install -g webtorrent-cli

Quick Start

# See what's airing right now
subsplease-dl latest

# Search for an anime (currently-airing shows)
subsplease-dl search "One Piece"

# View the weekly schedule
subsplease-dl schedule
subsplease-dl schedule --day Sunday

# Download the latest episode of a show (auto-detects quality)
subsplease-dl download --show "One Piece"

# Download a specific episode (use page slug from search/schedule)
subsplease-dl download --page one-piece --episode 1161

# Download in a detached tmux session (survives terminal close)
subsplease-dl download --show "One Piece" --tmux

# Just print the magnet link
subsplease-dl download --show "One Piece" --magnet-only

All Commands

search <query>

Search for currently-airing anime by name.

subsplease-dl search "mushoku tensei"

schedule

Show the full weekly airing schedule with page slugs.

subsplease-dl schedule
subsplease-dl schedule --day Monday

latest

Show recent episode releases with magnet links.

subsplease-dl latest
subsplease-dl latest --limit 30 --quality 720

episodes --page <slug>

List all available episodes for a show.

subsplease-dl episodes --page one-piece
subsplease-dl episodes --page one-piece --batches  # show batch releases

download

Download an episode. Supports --tmux for background downloads.

# By show name (latest episode)
subsplease-dl download --show "One Piece" --quality 1080

# By page slug + episode number
subsplease-dl download --page one-piece --episode 1161

# Print magnet link only (no download)
subsplease-dl download --page one-piece --episode 1161 --magnet-only

# Background download in tmux
subsplease-dl download --page one-piece --episode 1161 --tmux

# Custom output directory
subsplease-dl download --show "One Piece" --output ~/Downloads/anime

magnet --page <slug> --episode <ep>

Print or open a specific episode's magnet link.

subsplease-dl magnet --page one-piece --episode 1161
subsplease-dl magnet --page one-piece --episode 1161 --open  # open with system handler

watch <show>

Poll for new episodes and auto-download them.

# Run in foreground (Ctrl+C to stop)
subsplease-dl watch "One Piece" --quality 1080

# Run as persistent background tmux session
subsplease-dl watch "One Piece" --quality 1080 --tmux --interval 300

sessions

Manage active tmux download sessions.

subsplease-dl sessions list
subsplease-dl sessions attach spdl-one-piece-ep1161
subsplease-dl sessions kill spdl-one-piece-ep1161

Options Reference

Flag Default Description
-q / --quality 1080 Quality: 1080, 720, 480
-o / --output ./ Output directory
--client auto Torrent client binary
--tmux off Run in detached tmux session
--magnet-only off Print magnet link and exit
--interval 300 Watch poll interval in seconds
-l / --limit 20 Max results to show

Torrent Client Detection Order

  1. aria2c
  2. webtorrent
  3. transmission-cli
  4. qbittorrent-nox

Override with --client <binary>.

How It Works

  • Latest / Watch: Uses subsplease.org/api/?f=latest — fast, no scraping required.
  • Search / Schedule: Uses subsplease.org/api/?f=schedule — the full list of airing shows, fuzzy-matched client-side.
  • Episodes: Scrapes the show's HTML page to extract its SID, then calls subsplease.org/api/?f=show&sid=<id>.
  • Tmux sessions are named spdl-<show-slug>-ep<n> for easy identification.

Development

git clone ...
cd subsplease-dl
pip install -e ".[dev]"

License

MIT

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

subsplease_dl-0.3.0.tar.gz (18.3 kB view details)

Uploaded Source

Built Distribution

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

subsplease_dl-0.3.0-py3-none-any.whl (22.5 kB view details)

Uploaded Python 3

File details

Details for the file subsplease_dl-0.3.0.tar.gz.

File metadata

  • Download URL: subsplease_dl-0.3.0.tar.gz
  • Upload date:
  • Size: 18.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for subsplease_dl-0.3.0.tar.gz
Algorithm Hash digest
SHA256 853d8daf0f74d1bb69f284fc13bb7e8ee78f248c3132a1fc091a74db1f43f85a
MD5 702000dcbb6a1ffd1ae91f0555e6eca2
BLAKE2b-256 aaf7c8ecf303e751cb5aa46c783b6cf51552d6671ae1260339bf05346a86cf61

See more details on using hashes here.

File details

Details for the file subsplease_dl-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: subsplease_dl-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 22.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for subsplease_dl-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 74afe3ed6a097e667f8e0871fb927428d3851b9f07093e9516688e9aaf4081f4
MD5 cc5cf78c757123302ba47dac155aac47
BLAKE2b-256 cff8e5bf9986d1954f51167e7f9c504d9333e88b6117936b45b6bfe79401b955

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