Running ChromeDriver with Python Selenium on Heroku

I have recently been experimenting with the Heroku platform for building basic web apps, and my experience has been nothing but excellent so far.

At least, that was until I tried to incorporate Selenium into one of my Python projects.

Selenium is a Python library that can be used to “drive” web browsers such as Chrome, Firefox, etc so you can access websites, perform web scraping, and build tools to test your web apps. The problem here was that my code for Selenium refused to execute on Heroku. I wasn’t able to find any information about this issue readily available online, so when I finally solved the issue, I went ahead and created the above video tutorial. Several people have commented that this method fixed their problems, so I’ll post a text version of this tutorial as well.