我用 python 写了一个网络爬虫。
为了在heroku上部署它,我参考了这篇文章。 https://www.andressevilla.com/running-chromedriver-with-python-selenium-on-heroku/
并添加了这些构建包。 https://github.com/heroku/heroku-buildpack-google-chrome https://github.com/heroku/heroku-buildpack-chromedriver
但是当我在heroku上运行代码时,就会出现这个错误。
selenium.common.exceptions.SessionNotCreatedException:消息:会话未创建:此版本的 ChromeDriver 仅支持 Chrome 版本 90 当前浏览器版本是 89.0.4389.114,二进制路径为 /app/.apt/opt/google/chrome/chrome
chromedriver buildpack 似乎不支持 chrome buildpack。
还有其他构建包可以工作吗?或者我可以尝试其他方法来处理吗?
谢谢!