Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/seanpray/readfeed

RSS feed generator
https://github.com/seanpray/readfeed

rss rss-feed rss-generator

Last synced: 25 days ago
JSON representation

RSS feed generator

Awesome Lists containing this project

README

        

### readfeed

Extremely simple RSS generator for my website/blog. To determine the publication date the latest modified timestamp is used from the file metadata then converted to rfc2822 date format.

```toml
[dependencies]
readfeed = { git = "https://github.com/notseanray/readfeed" }

```

##### Example usage:
```rust
use readfeed::Feed;

fn main() {
let mut rss = Feed::new(
&"Example title!",
&"./examples",
Some(&"output.xml"),
&"pages",
&"https://exampleWebsite.com",
Some(&"Example Description!"),
);
rss.generate().unwrap();
}
```
###### output.xml
```


Example title!
https://exampleWebsite.com
Example Description!
en-us

hello
https://exampleWebsite.com/pages/hello.html
Thu, 24 Mar 2022 22:53:51 GMT


article
https://exampleWebsite.com/pages/article.html
Thu, 24 Mar 2022 22:53:51 GMT


text
https://exampleWebsite.com/pages/text.html
Thu, 24 Mar 2022 22:53:51 GMT

```

##### contributing
Any suggestions, improvements, or pull request are welcome. I am relatively new to rust so my quality of code is not great but I'm looking to improve!