Crates.io | fbvideo |
lib.rs | fbvideo |
version | 0.4.1 |
source | src |
created_at | 2019-03-15 06:36:13.915421 |
updated_at | 2021-02-21 05:41:43.89519 |
description | Async crate to get video URLs from Facebook |
homepage | |
repository | https://github.com/lzutao/fburl-rs/tree/master/fbvideo |
max_upload_size | |
id | 120926 |
size | 7,337 |
Library to get video URLs from Facebook.
use fbvideo::{FbVideo, Quality};
#[tokio::main]
async fn main() {
let mut fb = FbVideo::new(
"https://www.facebook.com/817131355292571/videos/2101344733268123/",
Quality::Hd,
);
match fb.get_video_url().await {
Ok(url) => println!("{:?}", url),
Err(e) => panic!("{:?}", e),
}
}