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
electronic 2019-10-06 18:23:51 +08:00 via Android
支持
|
2
zhshch OP |
3
ango 2019-10-09 10:44:23 +08:00
关注一下~
|