【自荐】Goribot - 简洁的 Golang 轻量爬虫框架
https://github.com/zhshch2002/goribot
一个简单的栗子:
package main
import (
"fmt"
"github.com/zhshch2002/goribot"
)
func main() {
s := goribot.NewSpider()
s.NewTask(
goribot.MustNewGetReq("https://httpbin.org/get?Goribot%20test=hello%20world"),
func(ctx *goribot.Context) {
fmt.Println("got resp data", ctx.Text)
})
s.Run()
}
共 1 个回复
qdice007
不错,学习一下