Skip to main content

A user-friendly anime downloader CLI for Termux — streams from animepahe.pw with real-time search, CF cookie bypass, quality selection, and aria2c segmented downloading.

Project description

anime-termux

A user-friendly anime downloader CLI for Termux (Android) and Linux, streaming from animepahe.pw.

Install

pip install anime-termux

Recommended (for fastest downloads):

pkg install aria2   # 16-thread segmented downloading
pkg install ffmpeg  # video merging (usually pre-installed with yt-dlp)

Usage

# Interactive mode — search, pick, download
anime

# Custom download directory
anime --dir=/sdcard/MyAnime
anime --dir=/storage/external/Anime

# Refresh Cloudflare cookie (auto-extract or manual wizard)
anime --setup

Cloudflare bypass

AnimePahe sits behind Cloudflare. anime-termux handles this in two ways:

Automatic (Linux desktop / rooted Android)

On first run the tool tries to read cf_clearance directly from your locally installed Chrome or Chromium browser — no manual steps needed. It also detects your Chrome version and constructs the matching User-Agent automatically.

To unlock automatic decryption, install one of:

pip install cryptography   # recommended
# OR
pip install pycryptodome

Without a crypto library the tool falls back to the manual wizard.

Manual wizard (all platforms)

If auto-extraction fails (e.g. non-rooted Android, or no crypto library installed), the first-run wizard guides you through a one-time copy-paste:

  1. Open https://animepahe.pw in Chrome — let the CF check pass.
  2. F12 → Application → Cookies → copy cf_clearance value.
  3. F12 Console → type navigator.userAgent → copy the string.
  4. Paste both into the wizard.

Credentials are saved to ~/.config/anime-termux.json and reused on every subsequent run. Refresh with anime --setup when the cookie expires (usually every 1–7 days).

Features

  • Auto CF extraction — reads cf_clearance straight from Chrome on Linux/macOS; falls back to wizard on Android without root
  • Real-time search — suggestions appear from the first character you type; Tab to autocomplete
  • Quality picker — choose 360p / 480p / 720p / 1080p / best
  • Segmented download — aria2c with 16 connections (falls back to yt-dlp 8-fragment mode)
  • Episode range — single ep, ranges, comma lists, or all
  • Skip existing — already-downloaded episodes are skipped automatically
  • Custom directoryanime --dir=/path/to/folder

Output

/sdcard/Anime/{Anime Title}/{Anime Title} - Ep001.mp4

How it works

  1. Auto-extracts (or wizard-collects) cf_clearance + User-Agent from Chrome
  2. Searches the AnimePahe API with those credentials
  3. Shows a live-search prompt — results appear after the first character
  4. You pick episode range + quality
  5. yt-dlp downloads via kwik.cx extraction with segmented aria2c

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

anime_termux-1.0.2.tar.gz (14.4 kB view details)

Uploaded Source

Built Distribution

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

anime_termux-1.0.2-py3-none-any.whl (15.2 kB view details)

Uploaded Python 3

File details

Details for the file anime_termux-1.0.2.tar.gz.

File metadata

  • Download URL: anime_termux-1.0.2.tar.gz
  • Upload date:
  • Size: 14.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for anime_termux-1.0.2.tar.gz
Algorithm Hash digest
SHA256 85d80e014f79cb3a4b1c8a7224e23e0cc3463b0d09a1344577662489553b2815
MD5 8fdcd4063cb5a1cc73971408ba2baf73
BLAKE2b-256 04b5bd910c4a053aa671d2aa486e829dcc301c6216be321404d2ad656a03fa68

See more details on using hashes here.

File details

Details for the file anime_termux-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: anime_termux-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 15.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for anime_termux-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 df426700bb742bd03a1762cc95616618c0dcaf435ff79f758da0e3cf9b9486b9
MD5 4061dd0919dc20523463c55ef7adc998
BLAKE2b-256 1973eb87b4abbe70f36283a9e1f45a704f51be627266a066d7c8b397b3f62638

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