Answer the question
In order to leave comments, you need to log in
Seleniumwire disconnection, how to fix?
Good afternoon!
I'm using selenium-wire to pull links to the stream. Chrome in headless mode.
Faced the following conclusion:
However, I get the result I need!
I noticed that if you do not use driver.close () errors do not occur.
Tell me what could be the problem and how to solve it?
Answer the question
In order to leave comments, you need to log in
When using proxy, the problem is gone...
ip, port = "192.168.1.1", "443"
firefox_profile = webdriver.FirefoxProfile()
firefox_profile.set_preference("network.proxy.type", 1)
firefox_profile.set_preference("network.proxy.socks", ip)
firefox_profile.set_preference("network.proxy.socks_port", int(port))
driver = webdriver.Firefox(firefox_profile)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question