Advertisement
dereksir

Untitled

Mar 17th, 2024 (edited)
650
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.29 KB | None | 0 0
  1. #...
  2.  
  3. # intialize uc instance with configured options
  4. driver = uc.Chrome(options=options)
  5.  
  6. # navigate to target website
  7. driver.get('https://httpbin.io/ip')
  8.  
  9. # retrieve text content of the page
  10. textContent = driver.find_element(By.TAG_NAME, 'body').text
  11. print(textContent)
  12.  
  13. driver.quit()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement