How to host chrome driver on azure runbook and which chrome driver version should I use?

bptsai 1 Reputation point
2020-10-13T22:59:26.197+00:00

Hi,

I have python scripts that I want to scrape the website via Azure runbook.
I want to know how I can host the chrome driver in the runbook, which version should I use so that I can run the python scripts from there.

Could you please guide me?

Thank you!

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,160 questions
{count} votes

1 answer

Sort by: Most helpful
  1. olufemia-MSFT 2,861 Reputation points
    2020-10-20T03:15:53.48+00:00

    Happy to help, @bptsai - curious to know if there's a specific business need to host the chrome driver inside the runbook. If not, then I recommend hosting the driver locally then reference the driver path via your python script. Check out this community solution as a guide.

    1. Download ChromeDriver here: https://sites.google.com/a/chromium.org/chromedriver/downloads
    2. Here are the available options on how to reference downloaded driver via python script:
      • add downloaded driver to your system path
      • save the driver in same directory as your python script
      • specify the location directly via executable_path
        e.g. driver = webdriver.Chrome(executable_path='C:/path/to/chromedriver.exe')

    Also ref: Create Python runbook

    0 comments No comments