Skip to content

schu/feedcruncher

Repository files navigation

feedcruncher

Status: work in progress

feedcruncher is a small daemon to watch RSS feeds and send notifications for every new item. Supported notification targets are Discord and Slack webhooks.

Requirements

  • libsqlite3-dev

Configuration

Example feedcruncher.toml:

sleep_dur: 300
webhooks: [
  "https://discordapp.com/api/webhooks/..."
]

[[feeds]]
url = "https://schu.io/index.xml"

[[feeds]]
url = "https://blog.rust-lang.org/feed.xml"
webhooks = [
  "https://hooks.slack.com/..."
]

sleep_dur defines the time to sleep in seconds between polling. Default: 600

webhooks defines a list of webhook urls and can be set per feed as well as globally.

Usage

feedcruncher --config feedcruncher.toml

Testing

Start feedserver from first terminal:

$ make run-server
    Finished dev [unoptimized + debuginfo] target(s) in 0.13s
     Running `target/debug/feedserver`
Press Return to add new feed item ...

Start feedcruncher from second terminal:

$ make run
    Finished dev [unoptimized + debuginfo] target(s) in 0.14s
     Running `target/debug/feedcruncher --config config-test.toml`
Watching [
    FeedConfig {
        url: "http://localhost:4321",
    },
]
Waiting for new feed items ...

License

AGPL v3

About

RSS to Slack/Discord webhook

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published