aboutsummaryrefslogtreecommitdiff
path: root/articles/2023/newsboat-strip-junk-from-web-pages.html
diff options
context:
space:
mode:
authorPhilip Wittamore <philip@wittamore.com>2026-07-12 11:08:50 +0200
committerPhilip Wittamore <philip@wittamore.com>2026-07-12 11:08:50 +0200
commit420ceb49b53a8fa9d8ba8443e42e50cd7bd7cea9 (patch)
tree3009f0564d75e3f7d1ca38507e7ebb92deaded07 /articles/2023/newsboat-strip-junk-from-web-pages.html
update
Diffstat (limited to 'articles/2023/newsboat-strip-junk-from-web-pages.html')
-rwxr-xr-xarticles/2023/newsboat-strip-junk-from-web-pages.html46
1 files changed, 46 insertions, 0 deletions
diff --git a/articles/2023/newsboat-strip-junk-from-web-pages.html b/articles/2023/newsboat-strip-junk-from-web-pages.html
new file mode 100755
index 0000000..d3ea26f
--- /dev/null
+++ b/articles/2023/newsboat-strip-junk-from-web-pages.html
@@ -0,0 +1,46 @@
+<!doctype html>
+<html lang="EN">
+ <head>
+ <meta charset="utf-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+ <link rel="stylesheet" href="/style.css">
+ <title>Bloggings</title>
+ </head>
+ <body>
+ <header>
+ <h1>Bloggings</h1>
+ <a href="/index.php">Back</a>
+
+ </header>
+
+<main>
+<article>
+<h2>Newsboat: Strip junk from webpages</h2>
+<h3>17-11-2023</h3>
+ <p>
+ Install Python readability
+ </p>
+ <code>yay -S python-readability-lxml</code>
+ <p>
+ Test output
+ </p>
+ <code>
+ 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
+ </code>
+ <p>
+ In ~/.newsboat/config
+ </p><p>
+ set macro - french keyboard comma semicolon is practical
+ </p>
+ <code>
+ macro ; set browser "python3 -m readability.readability -u %u 2> /dev/null | w3m -T text/html"; open-in-browser ; set browser "w3m %u"
+ </code>
+ <p>
+ <a href="https://youtu.be/i4ndCJDvBbo">Source</a>
+ </p>
+
+</article>
+</main>
+<footer>
+<p>&nbsp;</p><p>ยง</p></footer>
+</body></html>