summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorBen Busby <contact@benbusby.com>2022-04-05 16:06:05 -0600
committerBen Busby <contact@benbusby.com>2022-04-05 16:06:05 -0600
commit29178e02c3669aeed6b03670e1b7b63f465b19c4 (patch)
tree3d35c1ae3f227b94fe017754e6d5e49f4396d420 /.github
parent2d4fa1f6b987fa83add795371d84096a1e5968ec (diff)
downloadfarside-29178e02c3669aeed6b03670e1b7b63f465b19c4.tar.gz
Use 'generator' field to filter SearXNG instances
See #23 More info: searxng/searxng#1046
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/update-instances.yml8
1 files changed, 4 insertions, 4 deletions
diff --git a/.github/workflows/update-instances.yml b/.github/workflows/update-instances.yml
index e7eb2cf..e3f17ba 100644
--- a/.github/workflows/update-instances.yml
+++ b/.github/workflows/update-instances.yml
@@ -36,7 +36,7 @@ jobs:
git checkout main
# ==============================================================
- # Searx update
+ # searx update
# ==============================================================
curl -s https://searx.space/data/instances.json | \
jq '[
@@ -62,21 +62,21 @@ jobs:
apply_update
# ==============================================================
- # SearxNG update
+ # SearXNG update
# ==============================================================
curl -s https://searx.space/data/instances.json | \
jq '[
.instances |
to_entries[] |
select(.value.network_type == "normal") |
+ select(.value.generator | . != null) |
+ select(.value.generator | contains("searxng")) |
select(.value.version | . != null) |
select(.value.network.asn_privacy == 0) |
select(.value.http.error == null) |
select(.value.tls.grade == "A+" or .value.tls.grade == "A") |
select(.value.http.grade == "A+" or .value.http.grade == "A") |
select(.value.html.grade == "V" or .value.html.grade == "F") |
- select(.value.docs_url | . != null) |
- select(.value.docs_url | contains("searxng")) |
.key
] | sort' > searxng-tmp.json