I am trying to scrape a website using playwright and host it on Azure Functions. However, playwright requires Chrome drivers which I can't seem to install into Azure Functions.
Unsure how to do this step in a pipeline:
pip install playwright
playwright install
Previously, I tried to do it in an azure pipeline:
- script: |
python -m venv ./azfunc/.python_packages
source ./azfunc/.python_packages/bin/activate
python -m pip install --upgrade pip keyring artifacts-keyring
pip install -r ./azfunc/requirements.txt
python -m playwright install
displayName: 'Install dependencies'
However, I get a webkit" browser was not found.Please complete Playwright installation via running"python -m playwright install
It seems like the Azure Function is not finding where it was installed. Any suggestions? Would using Docker be a good tactic?