Live data from Hacker News

Show HN: An API that takes a URL and returns a file with browser screenshots

github.com

21–30 of 107 posts

Re: Show HN: An API that takes a URL and returns a file with browser screenshots

#21
post #13
post #4

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?

[flagged]

Re: Show HN: An API that takes a URL and returns a file with browser screenshots

#22
post #3

us 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/

Unrelated, but I continue to be confused by "ClaudeMind" a JetBrains Plugin by "73signals": https://plugins.jetbrains.com/plugin/25082-claudemind

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

#23
This is cool but at this point MCP is the clear choice for exposing tools to LLMs, I'm sure someone will write a wrapper around this to provide the same functionality as an MCP-SSE server.

I 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

#24
post #15

That'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

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 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

#26
If you’re worried about the security risks, edge cases, maintenance pain and scaling challenges of self hosting there are various solid hosted alternatives:

- 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

#27
post #21
post #13

Earlier quoted context omitted.

What features won't work without GPU?

[flagged]

oh good an AI summary with none of the facts checked, literally more useless than the old lmgtfy and somehow more rude

"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

#28
Similar project: gowitness [1].

A 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.

[1] https://github.com/sensepost/gowitness

Re: Show HN: An API that takes a URL and returns a file with browser screenshots

#29
post #18
post #3

us ai?

It's one guy running his little AI startup fresh out of college. Claims to be a former national security analyst but makes no such claim on his LinkedIn.

Thanks for the catch on my LinkedIn, I really should have that there now. It was originally something I kept private.

Re: Show HN: An API that takes a URL and returns a file with browser screenshots

#30
post #24
post #15

Earlier 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…

Thanks, that's a great idea! I was originally going to go the vision model route because I'd also like people to be able to send instructions to sign in with some credentials (like when visiting the nytimes or something).
Post reply on HN