Package: feedstail
Feedstail is a tail-f-like utility for feeds. It monitor a feed and emits new entries.
Feedstail aim to be simple, hackable and compatible withrsstailits C brother.LicenseFeedstail is released under the terms of theGNU General Public License v3or later.Get startedUse pip to install feedstail the easy way:$ pip install feedstailOr retrieve the project with git and install it:$ git clone https://github.com/Psycojoker/feedstail.git
$ cd feedstail
$ python setup.py installThen, launch feedstail with a random feeds to test it:$ feedstail -u http://hackeragenda.be/events/events.rssExamplesBy default, feedstail will checkout the feeds every 15 minutes. If you
want to customize this interval you can use theioption.
The following example will retrieve feeds every 5 seconds:$ feedstail -u http://hackeragenda.be/events/events.rss -i 5The default output format may not be ok for you. You can specify your
own format using thefoption. The given fields must be an
available property of the feed entries.
The following example will output the published date, the title and the link:$ feedstail -u http://hackeragenda.be/events/events.rss -f "{published}: {title} - {link}"This last example use the string formatting syntax appeared in the 2.6
version of Python.
However, feedstail aim to be 2.5 compatible so you can use the old
string formatting syntax:$ feedstail -u http://hackeragenda.be/events/events.rss -f "%(published)s: %(title)s - %(link)s"Feedstail compares theidelement to find new entries. You can
choose another element of comparison with thekoption.
The following example says to feedstail to use the title to find new
entries:$ feedstail -u http://hackeragenda.be/events/events.rss -i 2 -k titleAs feedstail is built abovefeedparser, the available values of
format fields and keys can be found inthe documentation of the library.Importing to other python projectFeedstail could be imported to another python project with:from feedstail import feedGenerator
from feedstail.config import ConfigOptions :key : The comparaison key. By default:idreverse : Boolean value for reversing the entries of the feed. By default: Falsenumber : At the first time, show x entries. By default, it is None and shows all the received entries.ignore_key_error : Boolean value for ignore keys errors. By default: Falseno_endl : Boolean value for ignoring end lines. By default: Falseurl : The url. By default: Noneformat : The format of entries.Options not present :interval : The interval time for checking the feed.one shot : Get once the feed.The feedGenerator take an instance of Config as parameters and return a generator. This generator will return
an array of entries (could be an empty array) with the defined format.Example:from feedstail import feedGenerator
from feedstail.config import Config

feed = feedGenerator(Config(url="http://hackeragenda.be/events/events.rss", format=u'{title} - {link}'))
print '\n'.join(feed.next())Contribute !Fork the project:https://github.com/Psycojoker/feedstail.gitCreate your patch in a topic branchSend pull requests or send your patches via e-mailDon’t forget to mark your commits by one of the following flag:[enh]: Your commit add a notable enhancement, a new feature for instance[fix]: Your commit is a bugfix[doc]: Your commit improve the documentation[mod]: Your commit bring general changes, matching neither of the above, like refactoring