flâneur — a map of the web's best reading

Monolith – CLI tool for saving complete web pages as a single HTML file | Hacker News

news.ycombinator.com · saved by 1 readers

My own https://shot-scraper.datasette.io/ tool (which uses headless Playwright Chromium under the hood) has a command for this too: I use that for things like accepting cookie banners, but using it to scroll down to trigger additional loading should work too. There's also a --wait-for option which takes a JavaScript expression and polls until it's true before taking the shot - useful for if there's custom loading behavior you need to wait for. Documentation here: https://shot-scraper.datasette.io/en/stable/screenshots.html You can come up with workarounds for each, but it's still hacky and there's always going to be other pages that need special treatment. 1 - https://simpatico.io/acceptance.js 2 - https://simpatico.io/acceptance That's handy for when you're developing a front end and IT/devops hasn't approved/enabled the the CORS settings on the backend yet, or if you're just hacking around and want to get data from somewhere that doesn't allow cross domain requests. I tried this and

My own https://shot-scraper.datasette.io/ tool (which uses headless Playwright Chromium under the hood) has a command for this too: I use that for things like accepting cookie banners, but using it to scroll down to trigger additional loading should work too. There's also a --wait-for option which takes a JavaScript expression and polls until it's true before taking the shot - useful for if there's custom loading behavior you need to wait for. Documentation here: https://shot-scraper.datasette.io/en/stable/screenshots.html You can come up with workarounds for each, but it's still hacky and the

Explore this link on the map →

saved by