I use proxy and try to reduce traffic through them. Added request_interceptor with request.abort() under certain conditions. But at the same time, the traffic goes through the proxy. For example, I want to disable all the requests with google hosts
def interceptor(request: Request):
hosts_abort = [
"google"
]
if any ([request.host.__contains__(part) for part in hosts_abort]):
request.abort()
after create driver object:
driver.request_interceptor = interceptor
But, in proxy history i saw, requests with google`s hosts through proxy.
How can i change it?
I use proxy and try to reduce traffic through them. Added request_interceptor with request.abort() under certain conditions. But at the same time, the traffic goes through the proxy. For example, I want to disable all the requests with google hosts
after create driver object:
driver.request_interceptor = interceptor
But, in proxy history i saw, requests with google`s hosts through proxy. How can i change it?