Bloggings

Home

Newsboat: Strip junk from webpages

17-11-2023

Install Python readability

yay -S python-readability-lxml

Test output

python3 \ -m readability.readability -u \ 'https://www.servethehome.com/amd-psb-vendor-locks-epyc-cpus-for-enhanced-security-at-a-cost/' \ 2> /dev/null \ 1> output.html

In ~/.newsboat/config

set macro - french keyboard comma semicolon is practical

macro ; set browser "python3 -m readability.readability -u %u 2> /dev/null | w3m -T text/html"; open-in-browser ; set browser "w3m %u"

Source


A minimalist blog by Philip Wittamore