Skip to content

Prevent Extra HTTP request from Python? #2664

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

You must be logged in to vote

That's covered in the UC Mode video tutorial: https://www.youtube.com/watch?v=5dMFI3e85ig

In UC Mode, driver.get(url) has been modified so that it first checks if UC Mode is needed for the website you're loading. If so, it calls driver.uc_open_with_reconnect(url), and if not needed, it calls driver.default_get(url), which is a copy of the original driver.get(url).

In summary, to avoid that extra requests call, use either of the following when using UC Mode:

  • driver.default_get(url)
  • driver.uc_open_with_reconnect(url).

Replies: 1 comment

Comment options

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