mirror of
https://github.com/benbusby/farside.git
synced 2025-04-25 13:10:02 +00:00
Support SearXNG
Added a new seperate service for only redirecting to SearXNG instances. Note that plain "searx" redirects will use both SearX and SearXNG instances for those who don't have a preference between the two. Closes #23
This commit is contained in:
parent
7647c1c101
commit
20347822da
3 changed files with 51 additions and 1 deletions
27
.github/workflows/update-instances.yml
vendored
27
.github/workflows/update-instances.yml
vendored
|
@ -61,6 +61,33 @@ jobs:
|
|||
|
||||
apply_update
|
||||
|
||||
# ==============================================================
|
||||
# SearxNG update
|
||||
# ==============================================================
|
||||
curl -s https://searx.space/data/instances.json | \
|
||||
jq '[
|
||||
.instances |
|
||||
to_entries[] |
|
||||
select(.value.network_type == "normal") |
|
||||
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
|
||||
|
||||
cat searxng-tmp.json | jq .
|
||||
|
||||
jq --slurpfile searxng searxng-tmp.json \
|
||||
'( .[] | select(.type == "searxng") )
|
||||
.instances |= $searxng[0]' services.json > services-tmp.json
|
||||
|
||||
apply_update
|
||||
|
||||
# ==============================================================
|
||||
# SimplyTranslate update
|
||||
# ==============================================================
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue