Crates.io | kodik-parser |
lib.rs | kodik-parser |
version | 1.3.0 |
created_at | 2025-08-14 16:52:44.638566+00 |
updated_at | 2025-09-09 12:20:37.935923+00 |
description | A Rust library for getting direct links to files from Kodik. |
homepage | https://github.com/BatogiX/kodik-parser |
repository | https://github.com/BatogiX/kodik-parser |
max_upload_size | |
id | 1795099 |
size | 89,765 |
A Rust library for getting direct links to files from Kodik.
User-Agent substitution,
Search and caching of the current API endpoint,
Link decoding.
[dependencies.kodik-parser]
features = ["async-impl"]
use reqwest::Client;
use kodik_parser::async_impl;
async fn main() {
let client = Client::new();
let url = "https://kodik.info/video/91873/060cab655974d46835b3f4405807acc2/720p";
let kodik_response = async_impl::parse(&client, url).await.unwrap();
let link_720 = &kodik_response.links.quality_720.first().unwrap().src;
println!("Link with 720p quality is: {}", link_720);
}
[dependencies.kodik-parser]
features = ["blocking"]
use ureq::Agent;
use kodik_parser::blocking;
fn main() {
let agent = Agent::new_with_defaults();
let url = "https://kodik.info/video/91873/060cab655974d46835b3f4405807acc2/720p";
let kodik_response = blocking::parse(&agent, url).unwrap();
let link_720 = &kodik_response.links.quality_720.first().unwrap().src;
println!("Link with 720p quality is: {}", link_720);
}