go-rod / rod

A Chrome DevTools Protocol driver for web automation and scraping.

Home Page:https://go-rod.github.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

cplasfwst opened this issue · comments

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?

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

no

OK, I understand, thank you