Skip to main content

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

  1. First run: opens your system Chrome browser for ~5–10 seconds to solve the Cloudflare challenge automatically
  2. Saves the session cookies locally (~/.cache/animepahe-dl-tmux/)
  3. All subsequent requests use curl_cffi (Chrome TLS fingerprint) with the cached cookies — no browser opened again
  4. If cookies expire (~24 h), the browser re-opens automatically and refreshes them
  5. kwik.si stream URLs are decoded by running the page's obfuscated JS through Node.js
  6. 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


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.3.tar.gz (13.2 kB view details)

Uploaded Source

Built Distribution

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

animepahe_dl_tmux-1.4.3-py3-none-any.whl (11.1 kB view details)

Uploaded Python 3

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

Hashes for animepahe_dl_tmux-1.4.3.tar.gz
Algorithm Hash digest
SHA256 5962a22d06a24920eb82ee06047fae41119e512565e1d74dde928694baebf549
MD5 8675c531d65548194768ca61983e5740
BLAKE2b-256 f9a927aeedd7cfe5d98a2e39e150dbe5a1709419a475971bb6caa59ed4c34e64

See more details on using hashes here.

File details

Details for the file animepahe_dl_tmux-1.4.3-py3-none-any.whl.

File metadata

File hashes

Hashes for animepahe_dl_tmux-1.4.3-py3-none-any.whl
Algorithm Hash digest
SHA256 2b5c2bb1715065df8929805152592d04b633a29282458e55fad96da9d79037f6
MD5 ea4c21439f00dfb3a133df5c9c045cf6
BLAKE2b-256 1765bc49e25015ab426f2a5cd26c6ebcf4e6c82c8257b1df38661dd839e98a1d

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