- 这是一个便捷获取ss免费节点信息的工具,仅提供源码以供参考。
- 使用了goquery获取网页信息,ffjson快速格式化和反格式化json
go get github.com/PuerkitoBio/goquery
go get github.com/pquerna/ffjson/ffjson
1. go build main.go
2. ./main //当前目录出现最新配置文件
3. sslocl -c config*.json //enjoy fall out!
- win64: main.exe
- This is an util pacakge for scrap useful ss config node.
- It's a expriment for me to learn
goquery
andffjson
,and so simple. - I will be happy if it can help you sometimes.
go get github.com/PuerkitoBio/goquery
go get github.com/pquerna/ffjson/ffjson
1. go build main.go
2. ./main //config file disappear in current dir.
3. sslocl -c config*.json //enjoy fall out!
package main
import "<the package path>/ss"
func main(){
ss.ScrapUsefulNode(1080)
}
sslocal -c config[0/1/2].json
- win64: main.go
- parse html by using
goquery
- json marshal and un marshal to files.
I will provide static execute file just for daily use. And the website is not charitable,just use it in emergency, support them and it only cost you a bottle of water!