hcjohn463 / JableTVDownload

下載 jable好幫手
Apache License 2.0
673 stars 148 forks source link

能否添加Edge瀏覽器支持,ChromeDriver還得安裝Chrome瀏覽器 #106

Open anonymouswhac opened 1 year ago

anonymouswhac commented 1 year ago

能否添加Edge瀏覽器支持,ChromeDriver還得安裝Chrome瀏覽器

cocoshenFang commented 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)

anonymouswhac commented 1 year ago

(jable) D:\PythonScript\JableTVDownload>python main.py Traceback (most recent call last): File "D:\PythonScript\JableTVDownload\main.py", line 5, in from download import download File "D:\PythonScript\JableTVDownload\download.py", line 40 options = webdriver.EdgeOptions() IndentationError: unexpected indent

chenrujun-ROC commented 1 year ago

@anonymous-whac 縮排有問題