2020-01-25 14:43:40 +02:00
|
|
|
# Source: https://c.speedtest.net/speedtest-servers-static.php
|
|
|
|
#
|
2020-02-09 12:00:25 +02:00
|
|
|
# Ookla-speedtest hosts are now generated automatically when generating dlc.dat file.
|
2020-01-25 14:43:40 +02:00
|
|
|
#
|
2020-02-09 12:00:25 +02:00
|
|
|
# You can also generate manually with following Javascript code:
|
2020-01-09 16:15:57 +02:00
|
|
|
# let servers = [];
|
|
|
|
# document.querySelectorAll('server').forEach(s => {
|
|
|
|
# let v = s.attributes.host.value;
|
|
|
|
# if (v) {
|
2020-01-19 19:50:33 +02:00
|
|
|
# v = v.split(":")[0].toLowerCase();
|
2020-01-09 16:15:57 +02:00
|
|
|
# servers.push(v);
|
|
|
|
# }
|
|
|
|
# });
|
|
|
|
# servers = servers.filter((s, pos) => {
|
|
|
|
# if (!/^(\d{1,3}\.){3}\d{1,3}$/.test(s)) {
|
|
|
|
# return servers.indexOf(s) === pos;
|
|
|
|
# } else {
|
|
|
|
# return false;
|
|
|
|
# }
|
|
|
|
# });
|
|
|
|
# servers.sort();
|
|
|
|
# let output = "";
|
|
|
|
# servers.forEach(s => {
|
|
|
|
# output += "full:" + s + "\n";
|
|
|
|
# });
|
|
|
|
# console.log(output);
|
2020-02-09 12:00:25 +02:00
|
|
|
#
|
|
|
|
# Or you can generate manually with following sh code:
|
|
|
|
# curl -L -o servers-source.xml "https://c.speedtest.net/speedtest-servers-static.php" -H 'Accept-Encoding: gzip' --compressed
|
|
|
|
# perl -ne '/host="(.+):[0-9]+"/ && print "full:$1\n"' servers-source.xml | perl -ne 'print if not /^(full:([0-9]{1,3}\.){3}[0-9]{1,3})$/' | perl -ne 'print lc' | sort --ignore-case -u >> $GOPATH/src/$REPO_URL/data/ookla-speedtest
|
|
|
|
|
2018-08-21 22:44:20 +03:00
|
|
|
|
2020-01-27 17:19:23 +02:00
|
|
|
# Do not remove the following line
|
2020-01-17 07:35:30 +02:00
|
|
|
include:ookla-speedtest-ads
|