[][src]Crate fbvideo

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/");
    match fb.get_video_url(Quality::Hd) {
        Ok(url) => println!("{:?}", url),
        Err(e) => panic!("{:?}", e),
    }
}

Structs

FbVideo

This struct contains all methods necessary to get video URL or video title from Facebook.

Enums

Error

Represent all possible errors encounter in this library.

Quality

The quality of downloaded video.