Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
anonymouswhac opened this issue May 28, 2023 · 3 comments

Comments

@anonymouswhac
Copy link

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

@cocoshenFang
Copy link

cocoshenFang commented Jun 29, 2023

先去下載適合的 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
Copy link
Author

anonymouswhac commented Jul 22, 2023

(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
Copy link

@anonymous-whac 縮排有問題

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants