基于Go 1.19 的 站点模板爬虫
git clone https://github.com/Kongxiaoaaa/NetSpider.git
cd NetSpider
go mod init NetSpider
go mod tidy
go run main.go
main.go
func main() {
// 启动爬虫
downUrl := util.GetInput()
app.Fetch(downUrl, "./res") // Fetch(url, downloadDir)
}