I have a python script that uses Selenium and Chrome Webdriver to log in to my bank website to scrape the account balances.
It’s working as expected in windows, I’d now like to run it from within Home Assistant once or twice daily, and have the values update relevant HA sensors.
I was thinking that Appdaemon would be the simplest way to run the script, so I installed the Appdaemon addon and configured Selenium package to be installed. But I can’t figure out how/where to install Chromedriver and how to specify its location.
My system details:
Appdaemon add-on version: 0.3.2 System: Ubuntu 18.04.5 LTS (amd64 / qemux86-64) on Hyper V Home Assistant Core: 2020.12.1 Home Assistant Supervisor: 2020.12.7
The errors I see in the Appdaemon log when loading my app.py:
FileNotFoundError: [Errno 2] No such file or directory: 'chromedriver'
selenium.common.exceptions.WebDriverException: Message: 'chromedriver' executable needs to be in PATH.
Could somebody please point me to an example where Selenium & webdriver is being used with Home Assistant, as my searches have not fared so well?
The other option I was thinking was to run the python app on another VM, outside of Home Assistant, with the values being sent via MQTT. But this feels like a bit of a waste of resources.