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

执行python3爬虫任务selenium调用chromedriver报错(本地crontab没有报错) #349

Open
Huskey-dai opened this issue Apr 15, 2022 · 2 comments

Comments

@Huskey-dai
Copy link

Huskey-dai commented Apr 15, 2022

我在本地centos上用python3的selenium写了一个爬虫脚本,执行正常,编写的sh部署再crontab里面也能正常跑,但是放在gocron上面部署运行就失败。报错内容是selenium.common.exceptions.WebDriverException: Message: unknown error: DevToolsActivePort file doesn't exist。
本地代码中已经加过了chromedriver设置
chrome_options = Options() chrome_options.add_argument('--no-sandbox') chrome_options.add_argument('--disable-dev-shm-usage') chrome_options.add_argument('--headless')

@qinaction
Copy link

麻烦问下最后怎么解决了

@Huskey-dai
Copy link
Author

忘了怎么解决的了,不过我直接换了海豚,Apache dolphinscheduler

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

2 participants