aboutsummaryrefslogtreecommitdiff
path: root/articles/2023/newsboat-strip-junk-from-web-pages.html
blob: d3ea26f02bbd1183bca812b5a949d175afa716c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
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>