Thursday 13 June 2024
Fresh links page and OPML file from single recfile
==================================================
This week I transferred the data for the links page on my website.
First the links were collected with the use of the Linkding bookmark
manager. The links are now maintained in a recfile, which is a GNU
recutils database.
Aside from the links page, I also provide an OPML file. When I add a
web page to the links page, I check to see if it has an RSS feed.
Combining the links and feeds
-----------------------------
To maintain the data for the OPML file, I already had a recfile
in place.
Now that the data for the links page was also in a recfile, it only
made sense to integrate the two in a single file. This has the
advantage of making it immediately evident if a feed is missing.
Some elbow grease was required
------------------------------
Approximately half of the feed database could be automatically
integrated with the links database. The other feed links had to be
manually added to the links database. Overall, I spent around two
hours scripting the merging and manually checking and inserting the
feed links.
The maintenance of the links and feeds is still easy. A small shell
script builds the content of the links page and the OPML file, using
the links recfile.
The link to the OPML file can be found on the links page,
http://box.matto.nl/links.html
Last edited: $Date: 2024/06/13 11:58:42 $