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

Requests suddenly very slow, access denied #669

Closed strukiii closed 11 months ago

strukiii commented 1 year ago

Hi there,

Firstly, thanks for your time spent on the project its been a huge help. Two nights ago the speed of requests suddenly reduced by 4-5x resulting in logins on the site failing. I'd rather not fully elaborate on 'failing', it's a bit of an explanation, but for now let's focus on the speed of the requests. The browser hangs on 'establishing a secure connection' and 'waiting for xyz.com' far longer than it did days ago.

I'm running Windows 10. I hadn't updated anything to my knowledge, but since then I've updated libraries (selenium, selenium-wire, undetected-chromedriver and selectolax in my venv) with Python 3.10.4 and still see the same behavior. I'm running OpenSSL 1.1.1n 15 Mar 2022. CPU usage seems fine, peaking at about 20% and averaging about 10%. Running undetected chromedriver standalone does work fine and allows a login, in addition to near instant requests. I can't use it standalone though, as I'm capturing requests for my use case. I'm not using a proxy or specific settings, but I had been using

driver = uc.Chrome(service=Service("chromedriver.exe"))

when my program was working fine. I've since removed service, and I see the same behavior. I assume this has nothing to do with it, I'm still somewhat new to the library and was more so copy pasting that part.

Thanks a lot for the read, I look forward to hearing back.

strukiii commented 1 year ago

An additional anecdote from a different site. Again, works fine with standalone UC.
Screenshot (696)_LI