← Back to context

Comment by throwaway106382

7 days ago

holy crap - our company needs basically exactly this for a crazy feature our PM cooked up and we were gonna build something similar ourselves - this will save us so much time

Browserless can do this for free:

docker run -p 3000:3000 browserless/chrome:latest

  • Sounds like this does a lot more than simply take a screenshot. It mentions removing cookie banners, ads, etc. which is an always moving target.

    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.

  • > instead of managing browser clusters, and handling all the corner cases

    The cost with running a docker container is you have to manage that container. You’re paying with dev time not money.

    • Exactly this. We keep forgetting time and money that needs to be paid to a developer to setup and manage stuff.

  • I cant edit the above post but follow that command with a request for a screenshot like so:

        curl -X POST http://localhost:3000/screenshot \
      -H "Content-Type: application/json" \
      -d '{"url": "https://example.com"}' \
      --output screenshot.png