Skip to main content

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

  1. You paste your cf_clearance cookie (from browser DevTools) once
  2. All HTTP requests use curl_cffi (Chrome TLS fingerprint) + that cookie
  3. kwik.si stream URLs are decoded by running the page's obfuscated JS through Node.js
  4. ffmpeg downloads the HLS stream to MP4

Installation

pip install animepahe-dl-tmux

Requirements (must be in PATH):

Setup (one-time)

  1. Open https://animepahe.com in Chrome/Firefox
  2. Wait for the page to fully load (Cloudflare clears automatically)
  3. Press F12Application tab → Cookieshttps://animepahe.com
  4. Copy the value of cf_clearance
  5. 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


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.2.tar.gz (13.3 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.2-py3-none-any.whl (11.5 kB view details)

Uploaded Python 3

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

Hashes for animepahe_dl_tmux-1.4.2.tar.gz
Algorithm Hash digest
SHA256 29592811beca896f1b3eae4413124b48792a6012a71bcb6d654fce0bc4d54b8c
MD5 d720a90737ce0e4b7aff48f59533c29a
BLAKE2b-256 68d82e07722116c923048ecb263d816c5fea401bbc79ea200451b006e08a6755

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for animepahe_dl_tmux-1.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5a4085b387ed6c16f1f4b3c4c31ef7b1928a7a56d389268f6fb25d3f15479661
MD5 c532ce5bfefaabb644c034375144a9aa
BLAKE2b-256 6e456c17f45928177caa10cf2d26b9915e4a87852e2ebe08c025f60734f19ee7

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