LinuxCommandLibrary

animdl

Download anime episodes

TLDR

Download a specific anime

$ animdl download [anime_title]
copy

Download a specific anime by specifying an episode range
$ animdl download [anime_title] [[-r|--range]] [start_episode]-[end_episode]
copy

Download a specific anime by specifying a download directory
$ animdl download [anime_title] [[-d|--download-dir]] [path/to/download_directory]
copy

Grab the stream URL for a specific anime
$ animdl grab [anime_title]
copy

Display the upcoming anime schedule for the next week
$ animdl schedule
copy

Search a specific anime
$ animdl search [anime_title]
copy

Stream a specific anime
$ animdl stream [anime_title]
copy

Stream the latest episode of a specific anime
$ animdl stream [anime_title] [[-s|--special]] latest
copy

SYNOPSIS

animdl [OPTIONS] <PROVIDER> <QUERY>

PARAMETERS

-h, --help
    Show help message and exit.

--version
    Print version information.

--config DIR
    Custom config directory path.

--logs DIR
    Custom logs directory path.

--player PLAYER
    External player (e.g., mpv, vlc).

--quality QUALITY
    Video quality (e.g., 1080p, 720p, best).

--dub
    Prefer dubbed episodes.

--sub
    Prefer subbed episodes (default).

--skip-download
    Stream only, no download.

--batch
    Download all available episodes.

--threads THREADS
    Download threads count (default: 3).

--range RANGE
    Episode range (e.g., 1-12).

--select SELECT
    Interactive episode selection.

--last
    Download only latest episode.

DESCRIPTION

animdl is a lightweight, high-speed command-line tool for discovering, streaming, and downloading anime episodes from popular online providers like gogoanime, 9anime, and zoro.to. It leverages yt-dlp for robust downloads and supports mpv or other players for seamless playback.

Key features include multi-threaded downloading for efficiency, quality selection (e.g., 1080p, 720p), dubbed/subbed language options, episode range specification, batch mode for full seasons, and interactive episode selection. Users can stream directly without downloading or queue episodes for later.

The tool emphasizes simplicity: search with a provider and query, then choose actions via flags. It's Python-based, pip-installable, and cross-platform on Linux, requiring minimal dependencies like ffmpeg for muxing. Ideal for terminal enthusiasts seeking ad-free anime access, but users must respect content legality.

Configuration is flexible via ~/.config/animdl, with logging and custom players supported. Regularly updated for provider changes, ensuring reliability.

CAVEATS

Requires Python 3.8+, ffmpeg, and yt-dlp. Downloading copyrighted anime may violate laws; use VPN responsibly. Provider availability fluctuates; check GitHub for updates.

INSTALLATION

pip install animdl; or pipx install animdl for isolation. Update with pip install -U animdl.

PROVIDERS

gogo, 9anime, zoro, hianime, animepahe, allanime, crunchyroll (partial). Run animdl --help for full list.

EXAMPLE USAGE

animdl gogo 'One Piece' --quality 1080p --range 1000-1005 --threads 5
animdl 9anime naruto --dub --player mpv

HISTORY

Developed by JustSomeOne starting 2022; open-source on GitHub (stars: 1k+). Evolved from anime-dl, now feature-rich with active maintenance for new providers and bug fixes.

SEE ALSO

yt-dlp(1), mpv(1), ffmpeg(1)

Copied to clipboard