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:
- Open https://animepahe.pw in Chrome — let the CF check pass.
F12→ Application → Cookies → copycf_clearancevalue.F12Console → typenavigator.userAgent→ copy the string.- 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_clearancestraight 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 directory —
anime --dir=/path/to/folder
Output
/sdcard/Anime/{Anime Title}/{Anime Title} - Ep001.mp4
How it works
- Auto-extracts (or wizard-collects)
cf_clearance+User-Agentfrom Chrome - Searches the AnimePahe API with those credentials
- Shows a live-search prompt — results appear after the first character
- You pick episode range + quality
- 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file anime_termux-1.0.3.tar.gz.
File metadata
- Download URL: anime_termux-1.0.3.tar.gz
- Upload date:
- Size: 16.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3d23d70282d2e6d674245bd571a491cd2afce125a73eeb82c5760ce33a5ea118
|
|
| MD5 |
63460d9569c0ded332db14e12fea2d7c
|
|
| BLAKE2b-256 |
551bfeda5db31148c1263183cc3ea65acbd0ed36f46f3b75bf15a6203ebf26c7
|
File details
Details for the file anime_termux-1.0.3-py3-none-any.whl.
File metadata
- Download URL: anime_termux-1.0.3-py3-none-any.whl
- Upload date:
- Size: 16.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fad610c833a0f470b12781b2f8b82f1ee09938e99225b3d0ac78d1edf7159a3f
|
|
| MD5 |
2a52aad382cdfcbeef2a32fde7491f62
|
|
| BLAKE2b-256 |
35067b79ffb3ec417c96297458c8a5d3ef890fd0609c85b83ad6aae50e24eda3
|