add repology history example - randomcrap - random crap programs of varying quality
(HTM) git clone git://git.codemadness.org/randomcrap
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 3b0bd2e0665e6db17b9dfdf0b64cdebaa5782fb5
(DIR) parent 7be778aa6c9564eeef540b32f0940dff113aafb2
(HTM) Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Thu, 17 Aug 2023 18:50:27 +0200
add repology history example
Diffstat:
A config/sfeed/connectors/repology_h… | 18 ++++++++++++++++++
1 file changed, 18 insertions(+), 0 deletions(-)
---
(DIR) diff --git a/config/sfeed/connectors/repology_history_atom.sh b/config/sfeed/connectors/repology_history_atom.sh
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+name="$1"
+curl -s "https://repology.org/project/${name}/history" | \
+webdump -s table -u 'tr th' | \
+LC_ALL=C awk '
+BEGIN {
+ FS = OFS = "\t";
+ print "<?xml version=\"1.0\" encoding=\"UTF-8\"?>";
+ print "<feed xmlns=\"http://www.w3.org/2005/Atom\" xml:lang=\"en\">";
+}
+{
+ print "<entry>";
+ print "<title><![CDATA[" $2 "]]></title>";
+ print "<updated>" $1 "</updated>";
+ print "</entry>";
+}
+'