go-rod / rod

A Chrome DevTools Protocol driver for web automation and scraping.
https://go-rod.github.io
MIT License
5k stars 328 forks source link

Notice! ! ! Can I modify Lanucher's proxy here again? #1035

Closed cplasfwst closed 2 months ago

cplasfwst commented 2 months ago

Rod Version: v0.114.8

`package main

import ( "github.com/go-rod/rod/lib/launcher" )

func main() { //Create Launcher instance l := launcher.New()

 //Set proxy
 l.SetProxy("http://your-proxy-url:port")

 // start browser
 lanucher := l.Headless(false).MustLaunch()

 // Other operations can be performed on lanucher here

Notice! ! ! Can I modify Lanucher's proxy here again? //Finally close the browser deferlanucher.Close() }` The question is the same as above. How can I modify laucher's proxy again after lancher is created? exist

// start browser
     lanucher := l.Headless(false).MustLaunch()

Can the proxy be modified in subsequent code?

github-actions[bot] commented 2 months ago

Please fix the format of your markdown:

25 MD031/blanks-around-fences Fenced code blocks should be surrounded by blank lines [Context: "```"]
25 MD040/fenced-code-language Fenced code blocks should have a language specified [Context: "```"]
25 MD046/code-block-style Code block style [Expected: indented; Actual: fenced]
28 MD031/blanks-around-fences Fenced code blocks should be surrounded by blank lines [Context: "```"]

generated by check-issue

ysmood commented 2 months ago

no

cplasfwst commented 2 months ago

no

OK, I understand, thank you