Skip to content
This repository was archived by the owner on Mar 14, 2022. It is now read-only.

[General] Selenium 的 googledriver 不能用? #385

@FlyTori

Description

@FlyTori

提交連結

程式碼

from selenium import webdriver
driver = webdriver.Chrome()
driver.get("https://kktix.com/")
contnet = driver.page_source
print(content)

錯誤訊息

Screen Shot 2021-12-04 at 10 30 21 PM
Screen Shot 2021-12-04 at 10 30 27 PM
Screen Shot 2021-12-04 at 10 30 34 PM

問題描述

已經安裝selenium和chromedriver,也有使用“xattr -d com.apple.quarantine chromedriver” 取消程式的隔離註記
現在是想要嘗試看看是否可以正常運作,以及想知道使用selenium獲得的程式碼是長什麼樣子
但完全無法正常運作
看了一下我的chrome版本,是Version 96.0.4664.55 (Official Build) (x86_64),
但我下載的driver是ChromeDriver 96.0.4664.45(網路上沒有提供96.0.4664.55的driver),不知道是不是這個問題?
或是我的程式碼有其他問題?
請大大幫忙解惑,謝謝

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions