Open anonymouswhac opened 1 year ago
先去下載適合的 Edgedriver https://developer.microsoft.com/zh-tw/microsoft-edge/tools/webdriver/
download.py 修改為以下即可 options = webdriver.EdgeOptions() options.add_argument('--no-sandbox') options.add_argument('--disable-dev-shm-usage') options.add_argument('--disable-extensions') options.add_argument('--headless') options.add_argument("user-agent=Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.125 Safari/537.36 Edge/18.18363") dr = webdriver.Edge(options=options)
(jable) D:\PythonScript\JableTVDownload>python main.py
Traceback (most recent call last):
File "D:\PythonScript\JableTVDownload\main.py", line 5, in
@anonymous-whac 縮排有問題
能否添加Edge瀏覽器支持,ChromeDriver還得安裝Chrome瀏覽器