webdump: simplify extracting title example - www.codemadness.org - www.codemadness.org saait content files
(HTM) git clone git://git.codemadness.org/www.codemadness.org
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 6334048b5ebe3bf3a2e718386ff43086bb2ea0a3
(DIR) parent 743cbd49e673961f2a5dddce644f8d0b10d89ef8
(HTM) Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Tue, 16 Jul 2024 10:18:33 +0200
webdump: simplify extracting title example
It does not need an URL parameter for the base URL.
Diffstat:
M config.cfg | 2 +-
M output/atom.xml | 4 ++--
M output/atom_content.xml | 8 ++++----
M output/rss_content.xml | 4 ++--
M output/sitemap.xml | 2 +-
M pages/webdump.cfg | 2 +-
M pages/webdump.md | 2 +-
7 files changed, 12 insertions(+), 12 deletions(-)
---
(DIR) diff --git a/config.cfg b/config.cfg
@@ -1,5 +1,5 @@
# last updated the site.
-siteupdated = 2024-06-30
+siteupdated = 2024-07-16
sitetitle = Codemadness
siteurl = https://www.codemadness.org
(DIR) diff --git a/output/atom.xml b/output/atom.xml
@@ -2,7 +2,7 @@
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
<title>Codemadness</title>
<subtitle>blog with various projects and articles about computer-related things</subtitle>
- <updated>2024-06-30T00:00:00Z</updated>
+ <updated>2024-07-16T00:00:00Z</updated>
<link rel="alternate" type="text/html" href="https://www.codemadness.org" />
<id>https://www.codemadness.org/atom.xml</id>
<link rel="self" type="application/atom+xml" href="https://www.codemadness.org/atom.xml" />
@@ -46,7 +46,7 @@
<title>webdump HTML to plain-text converter</title>
<link rel="alternate" type="text/html" href="https://www.codemadness.org/webdump.html" />
<id>https://www.codemadness.org/webdump.html</id>
- <updated>2024-06-30T00:00:00Z</updated>
+ <updated>2024-07-16T00:00:00Z</updated>
<published>2023-11-20T00:00:00Z</published>
<author>
<name>Hiltjo</name>
(DIR) diff --git a/output/atom_content.xml b/output/atom_content.xml
@@ -2,7 +2,7 @@
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
<title>Codemadness</title>
<subtitle>blog with various projects and articles about computer-related things</subtitle>
- <updated>2024-06-30T00:00:00Z</updated>
+ <updated>2024-07-16T00:00:00Z</updated>
<link rel="alternate" type="text/html" href="https://www.codemadness.org" />
<id>https://www.codemadness.org/atom_content.xml</id>
<link rel="self" type="application/atom+xml" href="https://www.codemadness.org/atom_content.xml" />
@@ -515,7 +515,7 @@ feeds() {
<title>webdump HTML to plain-text converter</title>
<link rel="alternate" type="text/html" href="https://www.codemadness.org/webdump.html" />
<id>https://www.codemadness.org/webdump.html</id>
- <updated>2024-06-30T00:00:00Z</updated>
+ <updated>2024-07-16T00:00:00Z</updated>
<published>2023-11-20T00:00:00Z</published>
<author>
<name>Hiltjo</name>
@@ -523,7 +523,7 @@ feeds() {
</author>
<summary>webdump HTML to plain-text converter</summary>
<content type="html"><![CDATA[<h1>webdump HTML to plain-text converter</h1>
- <p><strong>Last modification on </strong> <time>2024-06-30</time></p>
+ <p><strong>Last modification on </strong> <time>2024-07-16</time></p>
<p>webdump is (yet another) HTML to plain-text converter tool.</p>
<p>It reads HTML in UTF-8 from stdin and writes plain-text to stdout.</p>
<h2>Goals and scope</h2>
@@ -582,7 +582,7 @@ change in ~/.mailcap:</p>
<p>To get the title from a HTML page:</p>
<pre><code>url='https://codemadness.org/sfeed.html'
-title=$(curl -s "$url" | webdump -s 'title' "$url")
+title=$(curl -s "$url" | webdump -s 'title')
printf '%s\n' "$title"
</code></pre>
<p>List audio and video-related content from a HTML page, redirect fd 3 to fd 1 (stdout):</p>
(DIR) diff --git a/output/rss_content.xml b/output/rss_content.xml
@@ -503,7 +503,7 @@ feeds() {
<dc:date>2023-11-20T00:00:00Z</dc:date>
<author>Hiltjo</author>
<description><![CDATA[<h1>webdump HTML to plain-text converter</h1>
- <p><strong>Last modification on </strong> <time>2024-06-30</time></p>
+ <p><strong>Last modification on </strong> <time>2024-07-16</time></p>
<p>webdump is (yet another) HTML to plain-text converter tool.</p>
<p>It reads HTML in UTF-8 from stdin and writes plain-text to stdout.</p>
<h2>Goals and scope</h2>
@@ -562,7 +562,7 @@ change in ~/.mailcap:</p>
<p>To get the title from a HTML page:</p>
<pre><code>url='https://codemadness.org/sfeed.html'
-title=$(curl -s "$url" | webdump -s 'title' "$url")
+title=$(curl -s "$url" | webdump -s 'title')
printf '%s\n' "$title"
</code></pre>
<p>List audio and video-related content from a HTML page, redirect fd 3 to fd 1 (stdout):</p>
(DIR) diff --git a/output/sitemap.xml b/output/sitemap.xml
@@ -14,7 +14,7 @@
</url>
<url>
<loc>https://www.codemadness.org/webdump.html</loc>
- <lastmod>2024-06-30</lastmod>
+ <lastmod>2024-07-16</lastmod>
</url>
<url>
<loc>https://www.codemadness.org/mailservice.html</loc>
(DIR) diff --git a/pages/webdump.cfg b/pages/webdump.cfg
@@ -3,4 +3,4 @@ id = webdump
description = webdump HTML to plain-text converter
keywords = webdump, HTML to plain-text, converter, formatter
created = 2023-11-20
-updated = 2024-06-30
+updated = 2024-07-16
(DIR) diff --git a/pages/webdump.md b/pages/webdump.md
@@ -75,7 +75,7 @@ To get the title from a HTML page:
url='https://codemadness.org/sfeed.html'
- title=$(curl -s "$url" | webdump -s 'title' "$url")
+ title=$(curl -s "$url" | webdump -s 'title')
printf '%s\n' "$title"
List audio and video-related content from a HTML page, redirect fd 3 to fd 1 (stdout):