Skip to content
William Hughes edited this page Jun 23, 2013 · 3 revisions

Simple example

{
        "feeds":{"LRRCast":{
                        "url":"http://feeds.feedburner.com/lrrcast",
                        "exec":"wget '%(link)s'",
                        "seenfile":"lrrcast.seen"
                }}
}

This will simply download new links from the feed using wget

Feed Filtering

Sometimes a feed may contain items that you don't want downloaded. In this case, any feeds whose titles match the regex 'TTC.*' will not be downloaded

{
        "feeds":{"LRRCast":{
                        "url":"http://feeds.feedburner.com/lrrcast",
                        "exec":"wget '%(link)s'",
                        "seenfile":"lrrcast.seen",
                        "mods": [{"name":"filter",
                                          "on":"title",
                                          "pattern":"TTC.*"
                                        }]
}

Shared Configuration

Configuration elements can be shared by multiple feeds like so:

{
        "exec":"wget '%(link)s'",
        "feeds":{"LRRCast":{
                        "url":"http://feeds.feedburner.com/lrrcast",
                        "seenfile":"lrrcast.seen"
                        },
                "SGU":{
                    "url":"http://www.theskepticsguide.org/feed/rss.aspx?feed=SGU",
                    "seenfile":"sgu.seen"
                }
}

Clone this wiki locally