摘要: package main import ( "fmt" "strconv" "time" ) var ( maxRoutineNum = 2 ) // 模拟下载页面的方法 func download(url string, ch chan int) { fmt.Println("download f 阅读全文
posted @ 2021-01-21 16:31 brady-wang 阅读(2429) 评论(0) 推荐(0) 编辑
摘要: package main import ( "bufio" "fmt" "github.com/antchfx/htmlquery" "io/ioutil" "net/http" "os" "strconv" "time" ) func getResponse(url string ) *http. 阅读全文
posted @ 2021-01-21 16:09 brady-wang 阅读(86) 评论(0) 推荐(0) 编辑
摘要: package main import ( "fmt" "github.com/antchfx/htmlquery" "net/http" "strings" ) func getResponse(url string ) *http.Response { client := &http.Clien 阅读全文
posted @ 2021-01-21 14:33 brady-wang 阅读(113) 评论(0) 推荐(0) 编辑