Untitled

 avatar
unknown
plain_text
2 years ago
577 B
7
Indexable
from selenium import webdriver

# Đường dẫn đến trình điều khiển ChromeDriver
chrome_driver_path = "path/to/chromedriver.exe"

# Khởi tạo trình điều khiển Chrome Portable với ChromeDriver
options = webdriver.ChromeOptions()
options.binary_location = "path/to/chrome.exe" # đường dẫn đến chrome.exe trong thư mục Chrome Portable
driver = webdriver.Chrome(executable_path=chrome_driver_path, options=options)

# Mở trang web cụ thể
url = "https://www.example.com"
driver.get(url)

# Tắt trình duyệt
driver.quit()
Editor is loading...