From 20347822da52fdcff50924914d3a0928cffd27f3 Mon Sep 17 00:00:00 2001 From: Ben Busby Date: Fri, 18 Mar 2022 13:28:45 -0600 Subject: [PATCH] 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 --- .github/workflows/update-instances.yml | 27 ++++++++++++++++++++++++++ README.md | 3 ++- services.json | 22 +++++++++++++++++++++ 3 files changed, 51 insertions(+), 1 deletion(-) diff --git a/.github/workflows/update-instances.yml b/.github/workflows/update-instances.yml index 2a02eae..e7eb2cf 100644 --- a/.github/workflows/update-instances.yml +++ b/.github/workflows/update-instances.yml @@ -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 # ============================================================== diff --git a/README.md b/README.md index 50b0710..65382a3 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,8 @@ For example: | [Piped](https://github.com/TeamPiped/Piped) | Video Page | https://farside.link/piped/watch?v=eBGIQ7ZuuiU | [Bibliogram](https://sr.ht/~cadence/bibliogram/) | User Profile | https://farside.link/bibliogram/u/kbdfans | [Whoogle](https://github.com/benbusby/whoogle-search) | Search "Elixir" | https://farside.link/whoogle/search?q=elixir&lang_interface=en -| [Searx](https://github.com/searx/searx) | Search "Redis" | https://farside.link/searx/search?q=redis +| [SearX](https://github.com/searx/searx) | Search "Redis" | https://farside.link/searx/search?q=redis +| [SearXNG](https://github.com/searxng/searxng) | Search "EFF" | https://farside.link/searxng/search?q=EFF | [SimplyTranslate](https://git.sr.ht/~metalune/simplytranslate_web) | Translate "hola" | https://farside.link/simplytranslate/?engine=google&text=hola | [Lingva](https://github.com/TheDavidDelta/lingva-translate) | Translate "bonjour" | https://farside.link/lingva/auto/en/bonjour | [Rimgo](https://codeberg.org/video-prize-ranch/rimgo) | View photo album | https://farside.link/rimgo/a/H8M4rcp diff --git a/services.json b/services.json index 5f6ca82..baa4abb 100644 --- a/services.json +++ b/services.json @@ -247,6 +247,28 @@ "https://www.webrats.xyz" ] }, + { + "type": "searxng", + "test_url": "/search?q=<%=query%>", + "fallback": "https://searx.be", + "instances": [ + "https://northboot.xyz", + "https://paulgo.io", + "https://s.zhaocloud.net", + "https://search.bus-hit.me", + "https://search.mdosch.de", + "https://search.neet.works", + "https://search.ononoki.org", + "https://search.zzls.xyz", + "https://searx-private-search.de", + "https://searx.be", + "https://searx.fmac.xyz", + "https://searx.rasp.fr", + "https://searx.tiekoetter.com", + "https://searxng.zackptg5.com", + "https://www.webrats.xyz" + ] + }, { "type": "wikiless", "test_url": "/wiki/Wikipedia?lang=en",