Replicate Yahoo! Pipes idea in command line and generate static pages.
- static pages
- refresh via some cron job
- as simple as possible (server side and in terms of implementation)
- local rss (2-3 of them) (in file):
- rss crate:
- https://crates.io/crates/rss (not updated since Jan 2020, no support for Atom)
- https://crates.io/crates/feed-rs
- find-rss(?): https://crates.io/crates/find-rss * not maintained? alternatives?
- rss crate:
- filter defined via some config file (toml), just a "contains keyword" initially
- output rss with filtered turned into html/md (this could be a plugin-able exporter - occasion for using traits)?
- for markdown output, just generate "by hand" as the output is simple enough
- schema is xmlns="http://purl.org/rss/1.0/", and a proper parser should ignore the rest of the NS-es
- interesting "extension" is the dc ns: xmlns:dc="http://purl.org/dc/elements/1.1/"
The config file should be as simple as something like:
[sources]
rss1 = "https://hotnews.ro/"
rss2 = "https://orf.at"
rss3 = "feed.xml"
[filter.electric]
in = [ "rss1", "rss2" ]
contains = "electric car"
[filter.tesla]
in = [ "rss1" ]
contains = [ "tesla" ]
[output]
combine = ["tesla", "electric"]
Support these (or something like it), also:
[filter.unique]
in = [ "electric", "tesla" ]
mix = "dedup"
# mix = "and"
[output]
combine = "unique"
This is "the UI", so make it simple!