D
D
Danil Zaitsev2020-05-24 09:53:45
Python
Danil Zaitsev, 2020-05-24 09:53:45

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:
5eca19ec721a1642665789.png
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

1 answer(s)
D
Danil Zaitsev, 2020-05-31
@smashBird

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)

The reasons are still unknown, perhaps someone who fumbles can explain. I'll be happy to sort it out
, thanks in advance

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question