A simple script to query a searx api monitor stats for instance health and redirect to a healthy site. This helps redistribute the load and narrows down choices from a long list.
In the wild: https://stringtalk.org/searx
-
Parses the api response and checks for a grade of B or higher.
-
Select and print a random instance from the good instances.
- copy index.html and rndm-search.js in a location capable of supporting ajax
This started out as a node script which is also available in the nodejs folder.
- axios
- user-agents