Skip to content

U2Ft/RSS-filter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RSS Filter

Marks-as-read feed entries that match a specified filter.

Services supported

Is the service you use not supported? Open an issue.

Installation

pip install git+git://github.com/U2Ft/RSS-filter.git

Usage

RSS Filter

Usage:
  RSS-filter
  RSS-filter -e | --edit
  RSS-filter -h | --help
  RSS-filter -l | --list
  RSS-filter -s | --starred

Options:
  -h --help       Show this message.
  -e --edit       Edit the filters with your default editor.
  -l --list       List feed titles.
  -s --starred    Apply filters to starred entries only.

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.

Filters

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.

About

Marks-as-read feed entries that match a specified filter.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages