Created
March 15, 2022 07:12
-
-
Save mizzunet/50bb7aa5f42a278ccf28c025f7c07a60 to your computer and use it in GitHub Desktop.
Find fastest instance. Invidious, Nitter, Searx, Wikiless, Scribe etc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## First get json of instances | |
You may get this from LibRedirect extension repo | |
https://github.com/libredirect/libredirect/tree/master/src/instances |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### 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