JS Rendered requests with Chrome support added

This commit is contained in:
Musab Gültekin
2019-06-13 22:08:45 +03:00
parent 76a687e193
commit 1a7d480b36
8 changed files with 111 additions and 12 deletions

View File

@@ -138,3 +138,15 @@ func parseAlmaany(r *geziyor.Response) {
}
}
}
func TestGetRendered(t *testing.T) {
geziyor.NewGeziyor(geziyor.Options{
StartRequestsFunc: func(g *geziyor.Geziyor) {
g.GetRendered("https://httpbin.org/anything", g.Opt.ParseFunc)
},
ParseFunc: func(r *geziyor.Response) {
fmt.Println(string(r.Body))
},
//URLRevisitEnabled: true,
}).Start()
}