AnimePahe downloader — no browser required, cf_clearance cookie + curl_cffi
Project description
AnimePahe Downloader
Downloads anime from animepahe.com — no browser, no Playwright, no Docker.
How It Works
- You paste your
cf_clearancecookie (from browser DevTools) once - All HTTP requests use curl_cffi (Chrome TLS fingerprint) + that cookie
- kwik.si stream URLs are decoded by running the page's obfuscated JS through Node.js
- ffmpeg downloads the HLS stream to MP4
Installation
pip install animepahe-dl-tmux
Requirements (must be in PATH):
node— Node.js (for kwik.si JS decoding) — https://nodejs.orgffmpeg— for HLS download — https://ffmpeg.org
Setup (one-time)
- Open https://animepahe.com in Chrome/Firefox
- Wait for the page to fully load (Cloudflare clears automatically)
- Press F12 → Application tab → Cookies → https://animepahe.com
- Copy the value of
cf_clearance - Run:
animepahe-dl-tmux --set-cookie YOUR_CF_CLEARANCE_VALUE
The cookie stays valid for ~24 hours. Repeat step 5 when it expires.
Usage
animepahe-dl-tmux # interactive — prompts for everything
animepahe-dl-tmux "Demon Slayer" # search + pick episodes interactively
animepahe-dl-tmux "Demon Slayer" --all # download every episode
animepahe-dl-tmux "Demon Slayer" -e 1-5 # episodes 1 through 5
animepahe-dl-tmux "Demon Slayer" -e 1,3,7 # specific episodes
animepahe-dl-tmux "Demon Slayer" -r 720 # prefer 720p
Output
Files saved to downloads/<Anime Title>/Episode_NNNN.mp4 in your current directory.
Troubleshooting
| Symptom | Fix |
|---|---|
cf_clearance cookie is not set |
Run animepahe-dl-tmux --set-cookie <value> |
Got 403 or Cookie expired |
Get a new cookie from browser DevTools and re-run --set-cookie |
Node.js is required |
Install Node.js from https://nodejs.org |
ffmpeg not found |
Install ffmpeg — winget install ffmpeg / brew install ffmpeg / apt install ffmpeg |
| No players found | The episode may not be available yet on AnimePahe |
Project details
Release history Release notifications | RSS feed
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 animepahe_dl_tmux-1.4.2.tar.gz.
File metadata
- Download URL: animepahe_dl_tmux-1.4.2.tar.gz
- Upload date:
- Size: 13.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
29592811beca896f1b3eae4413124b48792a6012a71bcb6d654fce0bc4d54b8c
|
|
| MD5 |
d720a90737ce0e4b7aff48f59533c29a
|
|
| BLAKE2b-256 |
68d82e07722116c923048ecb263d816c5fea401bbc79ea200451b006e08a6755
|
File details
Details for the file animepahe_dl_tmux-1.4.2-py3-none-any.whl.
File metadata
- Download URL: animepahe_dl_tmux-1.4.2-py3-none-any.whl
- Upload date:
- Size: 11.5 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 |
5a4085b387ed6c16f1f4b3c4c31ef7b1928a7a56d389268f6fb25d3f15479661
|
|
| MD5 |
c532ce5bfefaabb644c034375144a9aa
|
|
| BLAKE2b-256 |
6e456c17f45928177caa10cf2d26b9915e4a87852e2ebe08c025f60734f19ee7
|