A minimal async Rust library to extract direct video stream URLs from CDA.pl.
This crate lets you fetch the highest quality video stream URL from a given CDA video page using asynchronous HTTP requests and HTML parsing.
- Extracts direct video stream links (e.g.
.mpdor.mp4) from CDA.pl - Automatically selects the best available resolution
- Fully async and lightweight
- Works great in Tauri, CLI tools, or any Rust app
Add this to your Cargo.toml:
[dependencies]
cda-dl = "0.1.0"use anyhow::Result;
use cda_dl::get_video_url;
#[tokio::main]
async fn main() -> Result<()> {
let cda_url = "http://www.cda.pl/video/1590976239";
let video_url = get_video_url(cda_url).await?;
println!("Video URL: {}", video_url);
Ok(())
}This project is licensed under the MIT License.