use crate::prelude::*; use crate::network::NetworkEnv; use atom_syndication::Feed; mod find; pub use find::find; pub fn get(url: &str, e: &NetworkEnv) -> Result { let content = (e.fetch_as_bytes)(url).context(format!("Fetching feed: {}", url))?; let channel = Feed::read_from(&content[..]).context("Could not parse RSS feed")?; Ok(channel) }