Marks-as-read Google Reader feed items that match a specified filter.
pip install git+git://github.com/U2Ft/RSS-filter.git
You'll need a Google OAuth client ID.
RSS Filter
Usage:
RSS-filter
RSS-filter -e | --edit
RSS-filter -h | --help
RSS-filter -l | --list
Options:
-h --help Show this message.
-e --edit Edit the filters with your default editor.
-l --list List feed titles.
Specify some filters, then run manually or write a cron job--something like
0 6,4 * * * RSS-filter > /dev/null
Run summaries are logged to a file in the config directory.
The filters file is JSON. Comments are allowed. The format is
{
// Every feed
"*": ["regex"],
// Specific feeds
"feed title": ["regex"]
}
where regex
is a Python Regular Expression.
Items in the named feed with titles that match the regex are marked as read.
Filters for the feed title *
are applied to every feed.
Note the irregular behaviour of backslash-escapes--in practice, repeat them.
E.g. to match a [
in the item title, the regex should be "\\["
.
Watch out for HTML entities (e.g. &
) in item and feed titles. If a regex that should be matching isn't, that's probably why.