script for download streming video from website (now is for zaiko.io only)
- Install Bun
- Clone this repository
bun install
- create
.env
file and fill variable (see.env.template
) - find "download url" and add it into
.env
(what url? how to find url)
bun dl [ -s | --start ] [first_package] [ -e | --end ] [last_package]
bun dl -s 1 -e 10
It will download index_4_1.ts
to index_4_10.ts
to ./videoes
.ts
files aren't TypeScript files. It's an "Transport Stream" file. You can read more about it here
(For zaiko.io)
- Open video steaming page
- Go to network tab in devtools
- Find request with
index_{number}_{number}.ts
in name - Copy url from request and paste it to
.env
(you need to removeindex_{number}_{number}.ts
from url but don't remove last/
beforeindex_{number}_{number}
)
- It only download
.ts
file. You need to merge it by yourself. I recommend FFmpeg - This project is for educational purpose only. I do not recommend to distributed the download stream to other website.
- Download video from zaiko.io
- Download video from other website
-
.mp4
output - custom url through cli
- More cli arguments command
made with ❤️ by me