rod
rod copied to clipboard
Is it possible to make a request through chrome's network stack ?
Rod Version: v0.114.1
Something like this:
browser := rod.New().ControlURL(launchUri.MustLaunch()).MustConnect()
page := browser.MustPage("<url>").MustWaitLoad()
var req *http.Request
page.Request(req) // launches the request through the page
It would useful for web scrappers who uses both a chrome driver & reverse engineered requests. Maybe you can already do it somehow ? Thanks.
Please fix the format of your markdown:
4 MD031/blanks-around-fences Fenced code blocks should be surrounded by blank lines [Context: "```golang"]
9 MD031/blanks-around-fences Fenced code blocks should be surrounded by blank lines [Context: "```"]
generated by check-issue
Check the tutorial: https://go-rod.github.io/#/javascript-runtime
https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch
page.MustEval(`u => fetch(u)`, "https://test.com")