3 ms·
Browserless can do this for free: docker run -p 3000:3000 browserless/chrome:latest
by Lord_Zero 1y ago
Browserless can do this for free:
docker run -p 3000:3000 browserless/chrome:latest
- Lord_Zero 1y agoI 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
- mike-cardwell 1y agoAnd what commands do I run if I want to do 100 screenshots per second?
- porridgeraisin 1y agoNot arguing as a part of this thread but as an aside. Can chrome even take 100 screenshots a second? What would be the max? I think it's interesting.
- Lord_Zero 1y agoYeah that's basically just a 100 FPS video at that point lol
- fastball 1y agoBrowserless is not free for commercial use.
- deleted 1y ago[deleted]
- nkrisc 1y agoSounds 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.
- tredre3 1y ago> 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. Oh okay so it does: chrome --load-extension=path/to/ublock --headless --screenshot https://website.com https://website.com
- la_fayette 1y agoCouldn't this be done with a headless Firefox and adblocker extensions?
- sjducb 1y ago> 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.
- throwaway7783 1y agoExactly this. We keep forgetting time and money that needs to be paid to a developer to setup and manage stuff.
- yencabulator 1y agoWell, for some users and uses, it's free. It seems they consider their small amount glue between docker and chrome a to be of commercial value. Still better than the original. https://github.com/browserless/browserless/blob/main/LICENSE https://github.com/browserless/browserless/blob/main/LICENSE