Closed wkeeling closed 2 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.
Expanding Selenium Wire's standalone proxy for external configuration is out of scope for now.
You can run Selenium Wire in standalone mode with:
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.