mirror of
https://github.com/benbusby/farside.git
synced 2025-04-20 10:58:42 +00:00
Use 'generator' field to filter SearXNG instances
See #23 More info: searxng/searxng#1046
This commit is contained in:
parent
2d4fa1f6b9
commit
29178e02c3
1 changed files with 4 additions and 4 deletions
8
.github/workflows/update-instances.yml
vendored
8
.github/workflows/update-instances.yml
vendored
|
@ -36,7 +36,7 @@ jobs:
|
||||||
git checkout main
|
git checkout main
|
||||||
|
|
||||||
# ==============================================================
|
# ==============================================================
|
||||||
# Searx update
|
# searx update
|
||||||
# ==============================================================
|
# ==============================================================
|
||||||
curl -s https://searx.space/data/instances.json | \
|
curl -s https://searx.space/data/instances.json | \
|
||||||
jq '[
|
jq '[
|
||||||
|
@ -62,21 +62,21 @@ jobs:
|
||||||
apply_update
|
apply_update
|
||||||
|
|
||||||
# ==============================================================
|
# ==============================================================
|
||||||
# SearxNG update
|
# SearXNG update
|
||||||
# ==============================================================
|
# ==============================================================
|
||||||
curl -s https://searx.space/data/instances.json | \
|
curl -s https://searx.space/data/instances.json | \
|
||||||
jq '[
|
jq '[
|
||||||
.instances |
|
.instances |
|
||||||
to_entries[] |
|
to_entries[] |
|
||||||
select(.value.network_type == "normal") |
|
select(.value.network_type == "normal") |
|
||||||
|
select(.value.generator | . != null) |
|
||||||
|
select(.value.generator | contains("searxng")) |
|
||||||
select(.value.version | . != null) |
|
select(.value.version | . != null) |
|
||||||
select(.value.network.asn_privacy == 0) |
|
select(.value.network.asn_privacy == 0) |
|
||||||
select(.value.http.error == null) |
|
select(.value.http.error == null) |
|
||||||
select(.value.tls.grade == "A+" or .value.tls.grade == "A") |
|
select(.value.tls.grade == "A+" or .value.tls.grade == "A") |
|
||||||
select(.value.http.grade == "A+" or .value.http.grade == "A") |
|
select(.value.http.grade == "A+" or .value.http.grade == "A") |
|
||||||
select(.value.html.grade == "V" or .value.html.grade == "F") |
|
select(.value.html.grade == "V" or .value.html.grade == "F") |
|
||||||
select(.value.docs_url | . != null) |
|
|
||||||
select(.value.docs_url | contains("searxng")) |
|
|
||||||
.key
|
.key
|
||||||
] | sort' > searxng-tmp.json
|
] | sort' > searxng-tmp.json
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue