我一直在 Chrome 和 Firefox 上使用 selenium 和 python。當我嘗試使用 selenium 運行這個特定網站時,它在兩個瀏覽器上都保持空白 - 我很感激任何幫助。這是我的 chrome 代碼:
from selenium import webdriver
options = webdriver.ChromeOptions()
options.add_experimental_option("useAutomationExtension", False)
options.add_experimental_option("excludeSwitches",["enable-automation"])
path = r'C:\Program Files (x86)\chromedriver.exe'
driver = webdriver.Chrome(executable_path=path, chrome_options=options)
driver.get('https://main.knesset.gov.il/Activity/committees/pages/allcommitteesagenda.aspx')
uj5u.com熱心網友回復:
添加引數
參考
您可以在以下位置找到一些相關的詳細討論:
- 如何使用 Selenium Webdriver 避開 Walmart 的封鎖
- Selenium 無法打開第二頁
轉載請註明出處,本文鏈接:https://www.uj5u.com/yidong/393419.html
