Skip to content

Tsugumik/cda-dl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Minimal async rust library for extracting video stream URLs from cda.pl

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages