Deploying a flask app with selenium on heroku

I want to deploy my flask app which uses selenium to scrap a website and returns data in json. It’s getting crashed due to chrome driver path which i’ve added in config vars, but still its not working. Is there any other way to make my web app run on heroku? I’ve added buildpacks too.

selenium settings:

    driver = webdriver.Chrome(executable_path=("CHROMEDRIVER_PATH"),options=options)
    options.binary_location = os.environ.get("GOOGLE_CHROME_BIN")

heroku error

heroku config vars

heroku buildpacks

Any assistance will be appreciated.

Source: Python-3x Questions

LEAVE A COMMENT