fbvideo 0.2.0

Library to get video URLs from Facebook
Documentation

This library is used to leak real video URL from Facebook.

This crate operates by fetching video page source from Facebook and searching for those string fields: hd_src_no_ratelimit, sd_src_no_ratelimit.

Networking

This crate needs network to fetch page source from Facebook's URL.

Examples

use fbvideo::{FbVideo, Quality};

fn main() {
let mut fb = FbVideo::new(
"https://www.facebook.com/817131355292571/videos/2101344733268123/",
Quality::Hd,
);
match fb.get_video_url() {
Ok(url) => println!("{:?}", url),
Err(e) => panic!("{:?}", e),
}
}