Selenium and ChromeDriver for requirements.txt?


#1

So I have a python flask app.
And I have a class that scrapes a site with selenium and chromedriver.
These are the imports

import boto3
import datetime
import os
import re
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
import time

My current requirements.txt is:

boto3==1.7.4
flask==0.12.2
requests==2.18.4
selenium==3.11.0

How do I include chromedriver in the package?
Have tried putting chromedriver in the project folder and reference it like this: driver = webdriver.Chrome(chrome_options=chrome_options, executable_path='./chromedriver'), but am getting selenium.common.exceptions.WebDriverException: Message: unknown error: cannot find Chrome binary error.

Tried executable_path=os.path.realpath('chromedriver')) and it didn’t work either.