Gangmax Blog

Newsbeuter: the CLI RSS reader

Newsbeuter is an open-source RSS/Atom feed reader for text terminals.

Installation

From here.

1
2
3
4
5
6
# Install:
sudo apt-get install newsbeuter
# Import an opml file:
newsbeuter -i ./archive.opml
# Start by refreshing RSS feeds at startup:
newsbeuter -r

Configuration

From here.

You can create a “~/.newsbeuter/config” file where to put the confugration items:

~/.newsbeuter/config
1
2
bookmark-cmd "~/.newsbeuter/bookmark.sh"
auto-reload yes

In the above configuration file, the “bookmark-cmd” item is used to save bookmark when reading RSS articles can press “Ctrl + B”. The “bookmark.sh” file content is:

~/.newsbeuter/bookmark.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh
# Copy from "/usr/share/doc/newsbeuter/contrib/bookmark-scuttle.sh"
# Save the bookmarks into the "bookmark.csv" file.
# (c) 2017 Max Huang

file="$HOME/.newsbeuter/bookmark.csv"

url="$1"
title="$2"
desc="$3"
date=`date "+%Y-%m-%d %H:%M:%S"`

content="\"$title\",\"$url\",\"$desc\",\"$date\""

echo $content >> $file

Notes

  1. The RSS URLs are saved into the “~/.newsbeuter/urls” file;

  2. The download RSS content is saved into the “~/.newsbeuter/cache.db” file which is a SQLite database;

  3. By backuping the “~/.newsbeuter/“ directory, all the data are backuped.

  4. Comparing to “ttrss“, Newsbeuter’s only shortcoming is that it cannot be read on mobile device. For other aspects it’s very GOOD.

Comments