wkeeling / selenium-wire

Extends Selenium's Python bindings to give you the ability to inspect requests made by the browser.
MIT License
1.9k stars 254 forks source link

Allow standalone proxy to be configured externally #117

Closed wkeeling closed 2 years ago

wkeeling commented 4 years ago

You can run Selenium Wire in standalone mode with:

python -m seleniumwire standaloneproxy 12345

where "12345" is the port the proxy will listen on. However, it is not possible to pass any other options - such as upstream proxy settings, or any of the other options specified in the "Other options" section of the README.

It should be possible to specify these options on the command line. It may be necessary to introduce argparse to handle these.

wkeeling commented 4 years ago

Another idea: allow the options to be specified as a dictionary in a python module with a known name - e.g. proxy_config.py. The standalone proxy will attempt to load this module at startup.

wkeeling commented 2 years ago

Expanding Selenium Wire's standalone proxy for external configuration is out of scope for now.