[问题] heroku buildpack浏览器跟driver版本不合

楼主: jojojen (JJJ)   2021-04-14 02:30:15
各位大大好
写了一个用到selenium的爬虫部署到heroku上
参考这篇文章
https://aishuafei.com/heroku-selenium/
为了在上面能跑浏览器 装了google-chrome 跟 chromedriver 的 Buildpacks:
https://github.com/heroku/heroku-buildpack-google-chrome
https://github.com/heroku/heroku-buildpack-chromedriver
但是在heroku端执行时出现以下错误:
selenium.common.exceptions.SessionNotCreatedException: Message: session not
created: This version of ChromeDriver only supports Chrome version 90
Current browser version is 89.0.4389.114 with binary path
/app/.apt/opt/google/chrome/chrome
看起来是 google-chrome 跟 chromedriver 的 Buildpack间版本不合造成的问题
请问可以怎么调整做法或有其他版本的Buildpack可用?
感谢!
作者: single4565 (leekdumpling韭菜水饺)   2021-04-14 10:45:00
好奇+1
作者: kobe8112 (小B)   2021-04-14 16:17:00
推找到解答有更新文章
作者: pinefruit (莫使惹尘埃)   2021-04-14 16:30:00
感谢分享解法!
作者: justoncetime (台北丛林好冷~)   2021-04-14 20:30:00
推,比得到答案就删文好100倍
作者: TitanEric (泰坦)   2021-04-15 12:20:00
赞啦
作者: bchoice (choice)   2021-04-20 09:03:00
谢谢分享

Links booklink

Contact Us: admin [ a t ] ucptt.com