10 lines
225 B
Rust
10 lines
225 B
Rust
|
use atom_syndication::Feed;
|
||
|
|
||
|
use crate::prelude::*;
|
||
|
|
||
|
pub fn get_feed(url: String) -> Result<Feed> {
|
||
|
let content = reqwest::blocking::get(url)?.bytes()?;
|
||
|
let channel = Feed::read_from(&content[..])?;
|
||
|
Ok(channel)
|
||
|
}
|