sfeed repology connector: requires User-Agent header now - randomcrap - random crap programs of varying quality
HTML git clone git://git.codemadness.org/randomcrap
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit 188ad918910da3e63a8aadfa7bf1d33c06487406
DIR parent d0b983dced13086272f6d2e843af03b593dddd08
HTML Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Fri, 1 May 2026 12:11:53 +0200
sfeed repology connector: requires User-Agent header now
Diffstat:
M config/sfeed/connectors/github | 6 +++---
M config/sfeed/connectors/repology_h… | 2 +-
2 files changed, 4 insertions(+), 4 deletions(-)
---
DIR diff --git a/config/sfeed/connectors/github b/config/sfeed/connectors/github
@@ -67,15 +67,15 @@ function show(issue) {
print "\t<category term=\"" xmlencode(labels[k]) "\" />";
print "</entry>";
}
-$2 == "?" {
- next; # ignore null
-}
$1 == "[]" {
show(o);
delete o;
delete labels;
nlabels = 0;
}
+$2 == "?" {
+ next; # ignore null
+}
$1 == "[].user.login" {
o["user.login"] = $3;
}
DIR diff --git a/config/sfeed/connectors/repology_history_atom.sh b/config/sfeed/connectors/repology_history_atom.sh
@@ -7,7 +7,7 @@
# https://repology.org/project/${name}/history
# repology_history(url)
repology_history() {
- curl -s "$1" | \
+ curl -H 'User-Agent: 007' -s "$1" | \
webdump -s table -u 'tr th' | \
LC_ALL=C awk '
BEGIN {