package main import ( "fmt" "github.com/antchfx/htmlquery" "net/http" ) func main() { var url string = "https://www.baidu.com/" client := &http.Client{} requestGet, _:= http.NewRequest("GET",
https://github.com/antchfx/htmlquery package main import ( "fmt" "github.com/antchfx/htmlquery" "log" "net/http" "time" ) func main() { url := "http://quotes.toscrape.com/&q
一、写在前面 其实早就该写这一篇博客了,为什么一直没有写呢?还不是因为忙不过来(实际上只是因为太懒了)。不过好了,现在终于要开始写这一篇博客了。在看这篇博客之前,可能需要你对 Go 这门语言有些基本的了解,比如基础语法之类的。话不多说,进入正题。 二、Go 环境配置 1.安装配置