Expand description
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§
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<