simonw / shot-scraper

A command-line utility for taking automated screenshots of websites
https://shot-scraper.datasette.io
Apache License 2.0
1.57k stars 70 forks source link

Add a new `--save-har=my.har` option to save requests to HAR file #146

Open asg017 opened 4 months ago

asg017 commented 4 months ago

Playwright has support for HAR files, which saves all network requests during a session to a custom file format.

The API is awkward but we can use route_from_har. We'll need to add update=True to save requests to the file, instead of "serveing" them.

There's a few more options to: