摘要: package main import ( "bufio" "fmt" "github.com/antchfx/htmlquery" "github.com/gocolly/colly" "github.com/gocolly/colly/extensions" "io/ioutil" "log" 阅读全文
posted @ 2020-11-19 15:05 brady-wang 阅读(495) 评论(1) 推荐(0)
摘要: package main import ( "fmt" "strings" ) func main() { str := "这里是 www\n.runoob\n.com" fmt.Println(" 原字符串 ") fmt.Println(str) // 去除空格 str = strings.Rep 阅读全文
posted @ 2020-11-19 12:27 brady-wang 阅读(5428) 评论(0) 推荐(0)
摘要: package main import ( "fmt" "github.com/antchfx/htmlquery" "github.com/gocolly/colly" "log" "strings" "time" ) func main() { c := colly.NewCollector( 阅读全文
posted @ 2020-11-19 11:36 brady-wang 阅读(1367) 评论(0) 推荐(0)
摘要: go实践十二 使用colly抓取网页数据 https://blog.csdn.net/daily886/article/details/96993620 Go语言爬虫框架之Colly和Goquery https://blog.csdn.net/sinat_36742186/article/detai 阅读全文
posted @ 2020-11-19 10:47 brady-wang 阅读(480) 评论(0) 推荐(0)