wkeeling / selenium-wire

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

Is it possible to only use the proxy for specific domains? #678

Open jordibonastrem opened 1 year ago

jordibonastrem commented 1 year ago

For example to exclude domains i know i can use exclude_hosts, can i do the same but only including the hosts that i want to proxy, and all the others that are not included, just ignore the proxy?

Ishogbon commented 11 months ago

I had a similar problem. I solved it by re-intercepting seleniumwire, and then retrieving the asset with my own custom requests object