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. * Disclosu…
Show HN: An API that takes a URL and returns a file with browser screenshots
31–40 of 107 posts
Re: Show HN: An API that takes a URL and returns a file with browser screenshots
#32Earlier 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…
Re: Show HN: An API that takes a URL and returns a file with browser screenshots
#33For 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 "
Firefox does a proper full page screenshot and even allows you to set a higher DPS value. I use this a lot when making video content.
Check out some of the args in FF using: `:screenshot --help`
Re: Show HN: An API that takes a URL and returns a file with browser screenshots
#34For 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 "
firefox -screenshot file.png https://example.com --window-size=1280,720
A bit annoyingly, it won't work if you have Firefox already open.Re: Show HN: An API that takes a URL and returns a file with browser screenshots
#35For 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 "
Firefox equivalent: firefox -screenshot file.png https://example.com --window-size=1280,720 A bit annoyingly, it won't work if you have Firefox already open.
Re: Show HN: An API that takes a URL and returns a file with browser screenshots
#36If 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. * Disclosu…
Re: Show HN: An API that takes a URL and returns a file with browser screenshots
#37For 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?
I've used this via selenium not too long ago
Re: Show HN: An API that takes a URL and returns a file with browser screenshots
#38From https://news.ycombinator.com/item?id=30681242 :
> Awesome Visual Regression Testing > lists quite a few tools and online services: https://github.com/mojoaxel/awesome-regression-testing
> "visual-regression": https://github.com/topics/visual-regression
Re: Show HN: An API that takes a URL and returns a file with browser screenshots
#39Earlier quoted context omitted.
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/
The similarities with WhiteHouse.gov’s design can’t be much help either, I imagine.
Re: Show HN: An API that takes a URL and returns a file with browser screenshots
#40Earlier quoted context omitted.
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/
I'll try to improve the vibes :( I've been working at this startup for almost two years now and that page and branding etc has been changing a lot as you can imagine ...
United States AI?
Like the premise of the company name is bad. Real bad.