0

I am a basic python programmer. I would like to change the settings of google chrome, especially the proxy and LAN settings automatically with a program. I tried looking at the webbrowser library, but I don't think its sufficient. I looked at the selenium library, but I do not know where to start looking for my requirements in the library, could someone provide a resource or a method on how to automate my tasks? I looked at another questions which describes a process using c#. But thats not my problem. I want the required documentation for my exact purpose.

http://seleniumhq.github.io/selenium/docs/api/py/api.html

which of these must I use?

1 Answers1

0

What you need to use is the Selenium WebDriver API, with Python bindings (lots of other languages are also supported, and many frameworks are available).

Here's a good Python example, plus there's a huge number of helpful questions on this site.

Here's a good description of the ChromeDriver (the WebDriver library that automates a Chrome browser) complete with installation instructions and example Python code.

I personally recommend BrowserMob as a proxy server for Selenium. Although it's Java-based, once it's running you can control it via a REST API - I assume you want to be able to manipulate requests/responses, that kind of thing?

In any case, there are lots of proxy servers available, and the configuration to use one within your Python code is pretty standard. See this example (see also the links).

Community
  • 1
  • 1
Andrew Regan
  • 5,087
  • 6
  • 37
  • 73