rafy
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
extern crate rafy;
use Rafy;
For more examples check out the Documentation.
Limitations
-
This library won't be able to fetch
audiostreamsandvideostreamsfor unpopular videos, because YouTube does not generate separate streams for unpopular videos. However, it will still be able to fetch normalstreams. -
Since this library does not depend on youtube-dl, there are some more things (not mentioning here) that we'll be missing out.
Running Tests
$ cargo test
Contributing
-
Rust is still new to me. If there is anything that can be improved, please open an issue or even better, send a PR! :smile:
-
Documentation improvements are also most welcome!
Thanks
The basic method of extracting streams was stolen from rust-youtube-downloader by smoqadam.
License
The MIT License