Skip to content
This repository has been archived by the owner on May 17, 2024. It is now read-only.

Latest commit

 

History

History
38 lines (31 loc) · 1.16 KB

README.md

File metadata and controls

38 lines (31 loc) · 1.16 KB

GoFetchMyFeeds

    $ go get -u github.com/tbellembois/gofetchmyfeeds

You can also download a binary in the releases section.

Create a configuration.toml:

[mail]
    host = "smtp.gmail.com"
    port = 587
    recipient = "foo@gmail.com"
    user = "foo@gmail.com"
    password = "supersecret"

[rss]
        feeds = [ 
                [ "http://www.howtoforge.com/rss/linux/debian.rss", "-HOWTOFORGE-" ],
                [ "http://www.futura-sciences.com/rss/high-tech/dossiers.xml", "-FUTURA-" ],
                [ "http://www.futura-sciences.com/rss/high-tech/actualites.xml", "-FUTURA-" ],
                ['http://downloads.bbc.co.uk/podcasts/worldservice/scia/rss.xml', '-BBC-'],
                ['http://downloads.bbc.co.uk/podcasts/worldservice/docarchive/rss.xml', '-BBC-'],
                ]

Run the program:

    $ gofetchmyfeeds [-logfile /path/to/gofetchmyfeeds.log] [-debug]

Cron configuration sample:

*/90 * * * *    myuser     /usr/local/gofetchmyfeeds -logfile /var/log/cron/gofetchmyfeeds.log 2>&1

Thanks to Sébastien Binet for the help.