Installing the Chromedriver can be tedious and often makes it difficult for people new to Selenium to get things running. I found this awesome webdriver-manager package a few weeks ago, and it totally eliminates this step. I run Ubuntu 18.04 so I've only tested on that OS, but it should work with any OS per the webdriver-manager docs.
I also added in another dependency for fake-useragent and created a function for creating the chromedriver with some options that are helpful for making automation detection more difficult.
This is likely redundant now with @andria-dev 's code. Closing to keep PRs clean but this is great work that we may end up needing to pick back up. Thanks!
Installing the Chromedriver can be tedious and often makes it difficult for people new to Selenium to get things running. I found this awesome webdriver-manager package a few weeks ago, and it totally eliminates this step. I run Ubuntu 18.04 so I've only tested on that OS, but it should work with any OS per the webdriver-manager docs.
I also added in another dependency for fake-useragent and created a function for creating the chromedriver with some options that are helpful for making automation detection more difficult.