Newsbeuter is rss/atom feed reader for text terminals which contains a plugin-based bookmark system. This allows us to call a command each time we bookmark an article. In the present case, we’ll use a simple python script to send the url, title and even tags to our Wallabag instance.
To call the API we’ll use the implementation by @foxmask :
pip install --user wallabag_api
Next, copy the script below in a new file, we’ll call it script.py.
Remember that it will contain your wallabag credentials, so don’t place it anywhere. For example, restrict the script permission :
chmod 700 script.py.
We need to configure newsbeuter to call this script each time we bookmark an item. To do so, just add this line to your newsbeuter configuration file in ~/.newsbeuter/config :
And it’s ready ! Don’t forget that we’re using the description entry to provide wallabag tags separated by commas.