Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/seanpray/readfeed
- Owner: seanpray
- License: mit
- Created: 2022-03-24T03:09:12.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2022-03-24T23:20:05.000Z (almost 3 years ago)
- Last Synced: 2024-12-15T16:55:51.230Z (26 days ago)
- Topics: rss, rss-feed, rss-generator
- Language: Rust
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
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!