Download anime from animepahe — cracks kwik.cx via Node.js, streams via ffmpeg
Project description
animepahe-dl
Download anime from animepahe in your terminal.
Fixes the Unsupported URL: https://kwik.cx/... error that yt-dlp hits — instead of relying on yt-dlp, this tool cracks kwik.cx's obfuscated JavaScript via Node.js to extract the real m3u8 stream, then downloads it with ffmpeg.
Requirements
- Python 3.10+
- Node.js (any recent version)
- ffmpeg
On Termux (Android):
pkg install nodejs ffmpeg
Install
pip install animepahe-dl
Usage
# Interactive (search + pick)
animepahe-dl
# Direct search
animepahe-dl -a "one punch man"
# Specific episode
animepahe-dl -a "one punch man" -e 1
# Episode range
animepahe-dl -a "one punch man" -e 1-5
# Multiple episodes
animepahe-dl -a "one punch man" -e 1,3,5
# All episodes at 720p
animepahe-dl -a "one punch man" -e "*" -r 720
# Custom output folder
animepahe-dl -a "bleach" -e 1-10 -o /sdcard/Anime
# Print m3u8 links without downloading
animepahe-dl -a "one punch man" -e 1-3 -l
Options
| Flag | Description |
|---|---|
-a |
Anime title to search |
-e |
Episodes: 1, 1-5, 1,3,5, or * for all |
-r |
Preferred resolution: 1080, 720, 480, 360 |
-o |
Output folder (default: ~/Anime) |
-l |
Print m3u8 links only, skip downloading |
How it works
- Searches the animepahe API
- Fetches the episode list
- Extracts the kwik.cx embed URL from the play page
- Fetches the kwik.cx page and extracts the obfuscated
eval(function(p,a,c,k,e,d){...})JavaScript block - Transforms it for Node.js (
eval(→console.log() and executes it to get the real m3u8 URL - Downloads the m3u8 stream with ffmpeg
License
MIT
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 pahe_dl-0.1.0.tar.gz.
File metadata
- Download URL: pahe_dl-0.1.0.tar.gz
- Upload date:
- Size: 6.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1cf7d72fb1b5c74e36b207952148321a61a9f6a0bc3f303155560fa0cbe05f48
|
|
| MD5 |
ccc926ae320dce6926d4c9e383a6c5f6
|
|
| BLAKE2b-256 |
eb9e447d59a4f89917542275ed03b31b3a1122b4216955f5f09911af1d6d47d3
|
File details
Details for the file pahe_dl-0.1.0-py3-none-any.whl.
File metadata
- Download URL: pahe_dl-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.8 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 |
44529389885b5513b35d32eaf323a21b0ef573b6b0b8a1e189b876c6e0c6d6a1
|
|
| MD5 |
5923a1ad4646eaf7357b22b5a626d5c1
|
|
| BLAKE2b-256 |
afc395416eac0d2565a7c54456ee43c66370a988ad9fee4dba55bb14c180b263
|