rafy 0.1.6

Rust library to download YouTube content and retrieve metadata
Documentation

rafy

Crates.io Docs.rs

Rust library to fetch YouTube content metadata. An attempt to mimic pafy but in Rust.

Installation

Put the below in your Cargo.toml

[dependencies]

rafy = "0.1"

Usage Examples

extern crate rafy;

use rafy::Rafy;

fn main() {
    let content = Rafy::new("https://www.youtube.com/watch?v=DjMkfARvGE8");
    println!("{}", content.videoid);
    println!("{}", content.title);
    println!("{}", content.rating);
    println!("{}", content.viewcount);
}

For more examples check out the Documentation.

Running Tests

cargo test

Thanks

The base code was adapted from rust-youtube-downloader by smoqadam, modified and further extended to suit the library accordingly.

License

The MIT License