Chromedp: How to setup proxy?

Created on 25 Jan 2017  路  3Comments  路  Source: chromedp/chromedp

This is a soooooooo great job! I love it.

And I have a question: How to setup proxy?

Most helpful comment

You need to configure chromedp/runner/Runner to use the Proxy flag:

c, err := chromedp.New(ctxt, chromedp.WithRunnerOptions(
    runner.Proxy(`http://localhost:8000/`),
))

All 3 comments

You need to configure chromedp/runner/Runner to use the Proxy flag:

c, err := chromedp.New(ctxt, chromedp.WithRunnerOptions(
    runner.Proxy(`http://localhost:8000/`),
))

How it use at now? runner package does not exists.

There was a refactor. If you want to use the example above as-is, use v0.1. Otherwise, see https://godoc.org/github.com/chromedp/chromedp#ProxyServer.

Was this page helpful?
0 / 5 - 0 ratings