An xmpp bot which posts to a MUC if there is an update in newsfeeds.
Find a file
2018-08-03 13:33:57 +02:00
.gitignore Initial commit 2018-07-13 22:53:22 +02:00
config.json.example Initial commit 2018-07-13 22:53:22 +02:00
feed-to-muc.go Added linebreaks and comments. 2018-08-02 09:33:19 +02:00
getarticles.go Changet getArticles to save timestamp after every updated article as I learned there are feeds which have the articles in wrong order (looking at you spiegel.de). 2018-08-03 13:33:57 +02:00
LICENSE Add LICENSE 2018-07-13 21:11:57 +00:00
README.md Fixed one more typo. 2018-07-15 18:44:08 +00:00
removetracking.go Added function to remove some commonly used tracking. 2018-08-03 11:02:31 +02:00

feed-to-muc

about

feed-to-muc is an XMPP bot which queries Atom or RSS newsfeeds and posts the short summary to a XMPP MUC if there is a new article.

disclaimer

I am no programmer and this bot is a result of a lot of try and error. There are probably lots of quirks that are remains of some wrong paths I went in between. Also a lot is probably solved in a hacky way due to missing experience.

Anyway, it works (for me at least) and so I upload this here. Recommendations about what can be done better improved and so on are very welcome.

requirements

installation

If you have GOPATH set just run this commands:

$ go get salsa.debian.org/mdosch-guest/feed-to-muc
$ go install salsa.debian.org/mdosch-guest/feed-to-muc

You will find the binary in $GOPATH/bin or, if set, $GOBIN.

configuration

If the flag -config is not used the configuration is expected at $HOME/.config/feed-to-muc/config.json in this format:

{
"ServerAddress": "example.com:5222",
"BotJid":        "feedbot@example.com",
"Password":      "ChangeThis!",
"Muc":           "muc-to-feed@conference.example.com",
"MucNick":       "feedbot",
"MaxArticles":    5,
"Feeds":         [ "https://www.debian.org/News/news",
                 "https://www.debian.org/security/dsa-long" ]
}