Skip to content

Slow parsing when uc=True #2457

Answered by mdmintz
JimKarvo asked this question in Q&A
Discussion options

You must be logged in to vote

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:

driver.default_get(url) # Because driver.get(url) works differently in UC Mode

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. Use driver.uc_open_with_reconnect(url, reconnect_time=None) for that:

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by mdmintz
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants