docker run -p 3000:3000 browserless/chrome:latest
If you have one, very narrow specific use case, then maybe that’s not so bad. But sounds like a huge pain if you need that for any arbitrary site.
Oh okay so it does:
chrome --load-extension=path/to/ublock --headless --screenshot https://website.com
The cost with running a docker container is you have to manage that container. You’re paying with dev time not money.
curl -X POST http://localhost:3000/screenshot \ -H "Content-Type: application/json" \ -d '{"url": "https://example.com"}' \ --output screenshot.png
Can chrome even take 100 screenshots a second? What would be the max? I think it's interesting.
https://github.com/browserless/browserless/blob/main/LICENSE
docker run -p 3000:3000 browserless/chrome:latest