安裝 colly # 启用 Go Modules 功能 go env -w GO111MODULE=on # 1. 七牛 CDN go env -w GOPROXY=https://goproxy.cn,direct # 2. 阿里云 go env -w GOPROXY=https://mirrors.aliyun.com/goproxy/,direct # 3. 官方 go env -w GOPROXY=https://goproxy.io,direct go get -u github.com/gocolly/colly/v2 Colly OnResponse package main import ( "fmt" "strings" "github.com/gocolly/colly" ) var count int = 0 func main() { c := colly.NewCollector() // 在col