Below are various attempts to make it work. Attempt no. 2 worked, because dependencies for Google Chrome were installed. So I figure it must be missing dependencies. It could be 230 of them to get Chromium that Flyscrape downloads working. Every attempt was done on a clean installation of WSL Ubuntu.
Attempt 1
$ wsl --install
$ curl -fsSL https://flyscrape.com/install | bash
$ flyscrape run script.js
Failed to launch the browser, the doc might help https://go-rod.github.io/#/compatibility?id=os: /home/dynabler/.cache/rod/browser/chromium-1131657/chrome: error while loading shared libraries: libnss3.so: cannot open shared object file: No such file or directory
To get browser mode working on WSL is as follows:
Below are various attempts to make it work. Attempt no. 2 worked, because dependencies for Google Chrome were installed. So I figure it must be missing dependencies. It could be 230 of them to get Chromium that Flyscrape downloads working. Every attempt was done on a clean installation of WSL Ubuntu.
Attempt 1
Attempt 2
guide: https://www.tiredsg.dev/blog/install-google-chrome-wsl/
Attempt 3
guide: https://stackoverflow.com/questions/58134793/error-while-loading-shared-libraries-libnss3-so-while-running-gtlab-ci-job-to
Attempt 4
Attempt 5
This one is how it should be.