AnimePahe Downloader
Downloads anime from animepahe.com with automatic Cloudflare bypass — no cookies to paste, no manual steps.
How It Works
- First run: opens your system Chrome browser for ~5–10 seconds to solve the Cloudflare challenge automatically
- Saves the session cookies locally (
~/.cache/animepahe-dl-tmux/) - All subsequent requests use curl_cffi (Chrome TLS fingerprint) with the cached cookies — no browser opened again
- If cookies expire (~24 h), the browser re-opens automatically and refreshes them
- kwik.si stream URLs are decoded by running the page's obfuscated JS through Node.js
- ffmpeg downloads the HLS stream to MP4
Requirements
- Chrome or Chromium installed on your system (used for the initial Cloudflare bypass)
- Node.js in PATH — for kwik.si stream decoding — https://nodejs.org
- ffmpeg in PATH — for HLS download — https://ffmpeg.org
Installation
pip install animepahe-dl-tmux
No other setup needed — just run it.
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 quality
animepahe-dl-tmux --clear-cache # force a fresh browser session
Output
Files saved to downloads/<Anime Title>/Episode_NNNN.mp4 in your current directory.
Troubleshooting
| Symptom | Fix |
|---|---|
| Chrome not opening / browser error | Make sure Chrome or Chromium is installed and in PATH |
| Cloudflare keeps looping | Run animepahe-dl-tmux --clear-cache then try again |
Node.js is required |
Install from https://nodejs.org |
ffmpeg not found |
winget install ffmpeg / brew install ffmpeg / apt install ffmpeg |
| No players found | Episode may not be on AnimePahe yet |
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
animepahe_dl_tmux-1.4.6.tar.gz
(13.7 kB
view details)
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.6.tar.gz.
File metadata
- Download URL: animepahe_dl_tmux-1.4.6.tar.gz
- Upload date:
- Size: 13.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cf65e28b1dbc64359f9f50913c80c3ecf8c245ce49ee72cbf51f6de0ea252e59
|
|
| MD5 |
74d16f727bba753dcfad4218ee2b8e58
|
|
| BLAKE2b-256 |
204ad788d95a27bfd30da3693bc392dca10e8276fe5fb8f37ec98c4235ff9e94
|
File details
Details for the file animepahe_dl_tmux-1.4.6-py3-none-any.whl.
File metadata
- Download URL: animepahe_dl_tmux-1.4.6-py3-none-any.whl
- Upload date:
- Size: 11.6 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 |
54fd2cbe5f8902eef9d8d8a9c1c61fbc180d30a91e98878f1e3d417f31599779
|
|
| MD5 |
f135086890e1d618ce1f40d99ae91d02
|
|
| BLAKE2b-256 |
6e75988f903652d2bf2b9b93a5b248ba4c64af809cf35f4654e65c3d78394595
|