AnimePahe downloader — automatic Cloudflare bypass via system Chrome (nodriver)
Project description
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 |
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.3.tar.gz.
File metadata
- Download URL: animepahe_dl_tmux-1.4.3.tar.gz
- Upload date:
- Size: 13.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5962a22d06a24920eb82ee06047fae41119e512565e1d74dde928694baebf549
|
|
| MD5 |
8675c531d65548194768ca61983e5740
|
|
| BLAKE2b-256 |
f9a927aeedd7cfe5d98a2e39e150dbe5a1709419a475971bb6caa59ed4c34e64
|
File details
Details for the file animepahe_dl_tmux-1.4.3-py3-none-any.whl.
File metadata
- Download URL: animepahe_dl_tmux-1.4.3-py3-none-any.whl
- Upload date:
- Size: 11.1 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 |
2b5c2bb1715065df8929805152592d04b633a29282458e55fad96da9d79037f6
|
|
| MD5 |
ea4c21439f00dfb3a133df5c9c045cf6
|
|
| BLAKE2b-256 |
1765bc49e25015ab426f2a5cd26c6ebcf4e6c82c8257b1df38661dd839e98a1d
|