2 releases
0.1.2 | Jun 22, 2023 |
---|---|
0.1.0 | Jun 18, 2023 |
#11 in #rss-reader
23KB
332 lines
Blazing Fast RSS Watcher
⚠️ This codebase is not yet ready for production usage.
This can be used as a library, or as a standalone binary.
How to run it as a binary
$ git clone
this repository on the main branch$ cargo build --release
- Place your rss links in the
rss_feeds.txt
file, one per line $ target/release/blazing-fast-rss-watcher test
Available modes: test
, http
, telegram
Optionally:
- Create a
.env
file withBOT_TOKEN
andCHAT_ID
for posting to Telegram (required intelegram
mode)
How to use the library
cargo add blazing-fast-rss-watcher
- See
main.rs
for an example. Theprocess_rss_feeds
function is the main entrypoint. Theconfig::AppConfig
struct is the main configuration struct, which is the parameter toprocess_rss_feeds
. - You can configure the environment using the
::from_env()
method on theAppConfig
struct.
TODO
- Implement WebSub detection for even faster/more efficient operation for supported feeds
- Docker image
- Add param for http mode variable address
- Make Article struct more dyanmic, allow custom patterns for the description.
Dependencies
~56MB
~1M SLoC