use feedfinder::detect_feeds; use url::Url; fn main() { let url = Url::parse("https://example.com/example").expect("unable to parse url"); let html = r#" Example My fun page with a feed. "#; match detect_feeds(&url, html) { Ok(feeds) => { println!("Possible feeds for {}:", url); for feed in feeds { println!("* {:?}", feed); } } Err(err) => println!("Unable to find feeds due to error: {}", err), } }