import os
from selenium import webdriver
from selenium.webdriver.chrome.options import Options


executable_path = "path_to_webdriver"
os.environ["webdriver.chrome.driver"] = executable_path

chrome_options = Options()
chrome_options.add_extension('path_to_extension')

driver = webdriver.Chrome(executable_path=executable_path, chrome_options=chrome_options)
driver.get("http://baidu.com")
driver.quit()

 

相关文章:

  • 2022-01-07
  • 2021-09-18
  • 2021-10-25
  • 2022-12-23
  • 2021-11-28
  • 2022-01-06
  • 2021-11-25
猜你喜欢
  • 2022-01-08
  • 2021-05-19
  • 2022-01-19
  • 2021-08-20
相关资源
相似解决方案