[][src]Crate future_rss

Rss Parse Library

use future_rss::RssParser;

#[tokio::main]
async fn main()->Result<(),Box<dyn std::error::Error>> {
    let address = "https://www.zhihu.com/rss";
    let mut parser = RssParser::from_url(address,"utf8").await?;
    parser.author_tag = String::from("dc:creator");
    let rss = parser.parse_vec().await?;
    println!("{:?}",rss);
    Ok(())
}

Structs

RssItem

Rss Item Node

RssParser

Rss Parse Utils

Statics

RSS_DEFAULT_AUTHOR_TAG

<author>...</author>

RSS_DEFAULT_DESC_TAG

<description>...</description>

RSS_DEFAULT_GUID_TAG

<guid>...</guid>

RSS_DEFAULT_LINK_TAG

<link>...</link>

RSS_DEFAULT_NODE_TAG

<item></item>

RSS_DEFAULT_PUBLISH_TAG

<pubDate>...</pubDate>

RSS_DEFAULT_TITLE_TAG

<title>...</title>