-
It seems that it takes about 5 seconds to get a single page when I use uc=True `from seleniumbase import Driver url = "https://example.com" The problem is that the website it loading under 0.2seconds, but at terminal i get
I have tried to load an unprotected site, the same behaviour. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
When you don't need to bypass bot-detection on a specific website while using UC Mode, use SeleniumBase/help_docs/method_summary.md Line 928 in fd9727a Regular page loads in UC Mode take longer because chromedriver disconnects from Chrome for a few seconds to prevent anti-bot services on that website from detecting Selenium. You can also customize the SeleniumBase/help_docs/method_summary.md Line 1014 in fd9727a |
Beta Was this translation helpful? Give feedback.
-
Fucking love SeleniumBase @mdmintz thanks for all the hard work brother |
Beta Was this translation helpful? Give feedback.
When you don't need to bypass bot-detection on a specific website while using UC Mode, use
driver.default_get(url)
to load that URL normally:SeleniumBase/help_docs/method_summary.md
Line 928 in fd9727a
Regular page loads in UC Mode take longer because chromedriver disconnects from Chrome for a few seconds to prevent anti-bot services on that website from detecting Selenium.
You can also customize the
reconnect_time
if you need a longer disconnect than the value set by default when opening a URL in UC mode. Usedriver.uc_open_with_reconnect(url, reconnect_time=None)
for that:SeleniumBase/h…