/ugly-rss-reader

Hopefully not an ugly reader for RSS, but an RSS reader for ugly RSSes

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

ugly-rss-reader

Hopefully not an ugly reader for RSS, but an RSS reader for ugly RSSes.

Especially meant for RSS feeds which are frequently updated or shuffled around. It can be fully controlled from the command line.

It tries to use the news link as key to determine if the news was already seen.

Usage

reader.py [options] <feed url>

It will produce unread feed items (with title, summary, date of publication, link) on standard output.

Command line options

  • --days=<number>

Ignores items older than the specified number of days.

  • --grep=<pattern>

Ignores items that do not match the given pattern. Pattern is a regular expression. You might need to enclose it between quotes.

  • --grepv=<pattern>

Reverse grep (as in grep -v); excludes items that match the pattern.

  • --tag-content=<pattern>

Will try the supplied regular expression against the article contents. If the regex contains capturing groups, the captured content will be printed on screen and saved in the database (for possible later use). It will parse HTML with regular expressions: use at your own risk.

  • --skip-untagged

Will ignore items whose content does not match the regex supplied with --tag-content.

  • --1

Prints one news item and exits.

  • --dry-run

Does not set the news as read.

  • --debug

Prints all available info about the news items.

Dependencies

  • feedparser
  • sqlite3