For anyone who might not be aware, Chrome also has the ability to save screenshots from the command line using: chrome --headless --screenshot="path/to/save/screenshot.png" --disable-gpu --window-size=1280,720 " https://www.example.com "
What features won't work without GPU?
Show HN: An API that takes a URL and returns a file with browser screenshots
21–30 of 107 posts
Re: Show HN: An API that takes a URL and returns a file with browser screenshots
#22us ai?
The website [1] is very strange. What does U.S. stand for? If I were to stumble on this I'd assume it was a fishing / scam website trying to impersonate the government. Bad vibes all around. [1] - https://us.ai/
Their website doesn't even mention 73signals: https://claudemind.com/
Surely Anthropic must have an issue with this use of their trademark? And 73signals seems so similar to 37signals as to be intentional.
Re: Show HN: An API that takes a URL and returns a file with browser screenshots
#23I want to try this out though and see how I like it compared to the MCP Puppeteer I'm using now (which does a great job of visiting pages, taking screenshots, interacting with the page, etc).
Re: Show HN: An API that takes a URL and returns a file with browser screenshots
#24That's nice and everything but what to do about the EU cookie banners? Does hosting outside of the EU help?
Yeah the EU cookie banners are annoying, I'm hoping to do some automation to click out of them before taking the screenshots
https://chromewebstore.google.com/detail/consent-o-matic/mdj...
Otherwise using a combination of well-known class names, ‘accept’ strings, and heuristics such as z-index, position: fixed/sticky etc can also narrow down the number of likely elements that could be modals/banners.
You could also ask a vision model whether a screenshot has a cookie banner, and ask for co-ordinates to remove it, although this could get expensive at scale!
Re: Show HN: An API that takes a URL and returns a file with browser screenshots
#25That's nice and everything but what to do about the EU cookie banners? Does hosting outside of the EU help?
Re: Show HN: An API that takes a URL and returns a file with browser screenshots
#26- https://browserless.io - low level browser control
- https://scrapingbee.com - scraping specialists
- https://urlbox.com - screenshot specialists*
They’re all profitable and have been around for years so you can depend on the businesses and the tech.
* Disclosure: I work on this one and was a customer before I joined the team.
Re: Show HN: An API that takes a URL and returns a file with browser screenshots
#27Earlier quoted context omitted.
What features won't work without GPU?
[flagged]
"here's some output that looks relevant to your question but I couldn't even be arsed to look any of it up, or copy paste it, or confirm its validity"
Re: Show HN: An API that takes a URL and returns a file with browser screenshots
#28A really cool tool i recently discovered. Next to scraping and performing screenshots of websites and saving it in multiple formats (including sqlite3), it can grab and save the headers, console logs & cookies and has a super cool web GUI to access all data and compare e.g the different records.
I'm planning to build my personal archive.org/waybackmachine-like web-log tool via gowitness in the not-so-distant future.
Re: Show HN: An API that takes a URL and returns a file with browser screenshots
#29Re: Show HN: An API that takes a URL and returns a file with browser screenshots
#30Earlier quoted context omitted.
Yeah the EU cookie banners are annoying, I'm hoping to do some automation to click out of them before taking the screenshots
There are browser extensions you could run like consent-o-matic to try to click and hide the cookies from your screenshots: https://chromewebstore.google.com/detail/consent-o-matic/mdj... Otherwise using a combination of well-known class names, ‘accept’ strings, and heuristics such as z-index, position: fixed/sticky etc can also narrow down the number of likely elements that could be modals/banners. You could also as…