What does HackerNews think of shot-scraper?

A command-line utility for taking automated screenshots of websites

Language: Python

The `Accept` HTTP header is there to prove your frontend is using "dumb" data. https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Ac...

I think the author is generally correct that all data should be provided in a single request. And to take it a step further, you should be able to change your accept header to JSON to serve an API. API/dumb-frontend aren't mutually exclusive.

In fact, this is what both GitLab and GitHub do. Try it out!

`curl -L https://github.com/simonw/shot-scraper` (defaults to text/html)

`curl --header "Accept: application/json" -L https://github.com/simonw/shot-scraper`

Sounds a lot like Simon Willison's open source project shot-scraper

https://github.com/simonw/shot-scraper

One tip I've picked up from experience: avoid projects that have user accounts.

If your project has user accounts, you'll get users who you have to take responsibility for. Then it's not a side-project any more, it's a part-time job.

These days I much prefer side projects which have no user accounts at all (like https://www.niche-museums.com/) or that are open source tools where the end user installs and uses the software without me having any involvement at all (like https://github.com/simonw/shot-scraper)