rafy

Rust Toolchain Crates.io Docs.rs Build Status

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

Installation

Put the below in your Cargo.toml

[dependencies]

rafy = "0.2"

Usage Examples

```rust extern crate rafy; use rafy::Rafy;

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

For more examples check out the Documentation.

Limitations

Running Tests

$ cargo test

Contributing

Thanks

The basic method of extracting streams was stolen from rust-youtube-downloader by smoqadam.

License

The MIT License