[][src]Crate easy_rss

Rss Parse Library

use easy_rss::RssParser;

fn main()->Result<(),Box<dyn std::error::Error>> {
    let address = "https://www.zhihu.com/rss";
    let mut parser = RssParser::from_url(address,"utf8")?;
    parser.author_tag = String::from("dc:creator");
    let rss = parser.parse_vec()?;
    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_TAG
RSS_DEFAULT_TITLE_TAG

<title>...</title>

XML_DEFAULT_TAG

Check <xml> and >rss<