Skip to content

Instantly share code, notes, and snippets.

@mizzunet
Created March 15, 2022 07:12
Show Gist options
  • Save mizzunet/50bb7aa5f42a278ccf28c025f7c07a60 to your computer and use it in GitHub Desktop.
Save mizzunet/50bb7aa5f42a278ccf28c025f7c07a60 to your computer and use it in GitHub Desktop.
Find fastest instance. Invidious, Nitter, Searx, Wikiless, Scribe etc
## First get json of instances
You may get this from LibRedirect extension repo
https://github.com/libredirect/libredirect/tree/master/src/instances
### Invidious
```
for i in (jq .invidious.normal[] data.json | sed 's/"//g' | sed 's/https:\/\///g')
set time (ping "$i" -A -c 1 | awk '{print $8}' | head -2| sed 's/time=//')
echo $time $i | tee -a invidious
end
sort -n searx
```
### Searx
```
for i in (jq .searx.normal[] data.json | sed 's/"//g' | sed 's/https:\/\///g')
set time (ping "$i" -A -c 1 | awk '{print $8}' | head -2| sed 's/time=//')
echo $time $i | tee -a searx
end
sort -n searx
```
and so on
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment