Mercurial > hg > egg-tcls
diff config.feeds.example @ 484:35d7be5db18b
fetch_feeds: Move the actual calling of fetching functions to the
configuration file config.feeds as a callback function, which is
run by fetch_feeds.tcl
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 29 Oct 2019 15:29:15 +0200 |
parents | e5a9aaf250b3 |
children | eb9921ae5c7a |
line wrap: on
line diff
--- a/config.feeds.example Tue Oct 29 15:18:47 2019 +0200 +++ b/config.feeds.example Tue Oct 29 15:29:15 2019 +0200 @@ -8,6 +8,20 @@ set feeds_dbfile "/home/niinuska/bot/feeds.sqlite" +# Callback for fetching the feeds data +proc feeds_fetch { } { + #fetch_poliisi "http://www.poliisi.fi/oulu/tiedotteet/1/0?all1/0" "Poliisi/Oulu" "http://www.poliisi.fi" + + fetch_halla_aho + + fetch_adventurers + + fetch_oots + + add_rss_feed "https://effi.org/feed/" "EFFI" "" +} + + # How often to check for newly added feed items from the database? # (in minutes) This has nothing to do how often the backend script # is run and actually scans / pulls the feeds, that is done in CRON.