Simon Willison released shot-scraper 1.11, introducing command option consistency and improving the server mechanism used by both `shot-scraper video` and `shot-scraper multi`. The update allows these commands to wait up to 30 seconds for a target URL to accept connections, replacing the previous fixed one-second delay.

  • The `server:` process now polls for port availability with a maximum wait of 30 seconds instead of a fixed one-second delay.
  • Commands including `shot-scraper`, `pdf`, `html`, `accessibility`, and `har` now support a `--js-file` option to load JavaScript from local files, standard input, or GitHub gists.
  • `shot-scraper multi` supports the equivalent `js_file:` YAML key for configuration.
  • `shot-scraper javascript` and `shot-scraper html` commands gained a `--timeout` option for consistency with other commands.

These changes enhance reliability when dealing with slow-starting servers and provide more flexible ways to inject JavaScript into scraping tasks.