rod icon indicating copy to clipboard operation
rod copied to clipboard

Is it possible to make a request through chrome's network stack ?

Open greg-lancet opened this issue 1 year ago • 2 comments

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.

greg-lancet avatar Jul 24 '23 17:07 greg-lancet

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

github-actions[bot] avatar Jul 24 '23 17:07 github-actions[bot]

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")

ysmood avatar Jul 24 '23 18:07 ysmood