Wie stelle ich einen Proxy für Chrome in Python Webdriver ein?

Ich benutze diesen Code:

profile = webdriver.FirefoxProfile()
profile.set_preference("network.proxy.type", 1)
profile.set_preference("network.proxy.http", "proxy.server.address")
profile.set_preference("network.proxy.http_port", "port_number")
profile.update_preferences()
driver = webdriver.Firefox(firefox_profile=profile)

Proxy für FF in Python Webdriver einstellen. Dies funktioniert für FF. Wie stelle ich einen Proxy wie diesen in Chrome ein? ich habe das gefundenBeispiel ist aber nicht sehr hilfreich. Wenn ich das Skript starte, passiert nichts (Chrome-Browser wird nicht gestartet).

Antworten auf die Frage(5)

Ihre Antwort auf die Frage