cda-dl

Crates.iocda-dl
lib.rscda-dl
version0.1.0
created_at2025-07-10 15:59:38.625196+00
updated_at2025-07-10 15:59:38.625196+00
descriptionMinimal async library for extracting video stream URLs from cda.pl
homepage
repository
max_upload_size
id1746700
size54,776
Błażej Drozd (Tsugumik)

documentation

README

cda-dl

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.

Features

  • Extracts direct video stream links (e.g. .mpd or .mp4) from CDA.pl
  • Automatically selects the best available resolution
  • Fully async and lightweight
  • Works great in Tauri, CLI tools, or any Rust app

Installation

Add this to your Cargo.toml:

[dependencies]
cda-dl = "0.1.0"

Example

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(())
}

LICENSE

This project is licensed under the MIT License.

Commit count: 0

cargo fmt