generate ookla-speedtest via go

This commit is contained in:
Richard Chen
2020-02-09 18:00:25 +08:00
parent 0d08234159
commit 8e05324f36
3 changed files with 76 additions and 9 deletions

View File

@ -31,11 +31,6 @@ jobs:
run: |
go get -u -v -insecure $REPO_URL
- name: Automatically generate ookla-speedtest sub-list from source
run: |
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
- name: Build geosite.dat file
run: |
domain-list-community