赞
踩
gospider 是一个golang 爬虫神器,它内置了多种反爬虫模块,是golang 爬虫必备的工具包
go get -u gitee.com/baixudong/gospider
https://gitee.com/baixudong/gospider
https://github.com/baixudong007/gospider
package main import ( "context" "log" "gitee.com/baixudong/gospider/requests" ) func main() { reqCli, err := requests.NewClient(context.TODO()) if err != nil { log.Panic(err) } response, err := reqCli.Request(context.TODO(), "get", "http://myip.top") if err != nil { log.Panic(err) } log.Print(response.Text()) }
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。