🛠 工具 / 开源
shot-scraper 1.11 发布shot-scraper 1.11
shot-scraper 1.11 版本发布,主要包含一些细微改进。更新重点在于命令选项的一致性,并修复了 `shot-scraper video` 和 `shot-scraper multi` 使用的 `server:` 机制在服务器启动时间超过一秒时无法工作的问题。
Simon Willison
Release shot-scraper 1.11 — A CLI utility for taking screenshots of websites, recording video demos and scraping sites using JavaScript
Some minor improvements, mainly around command option consistency and making the server: mechanism used by both shot-scraper video and shot-scraper multi work if the server takes longer than a second to start serving traffic.
server: processes used by shot-scraper multi and shot-scraper video now wait up to 30 seconds for the target URL to accept connections, polling for port availability and replacing the previous fixed one-second delay. #197 The shot-scraper, pdf, html, accessibility and har commands now have a --js-file option for loading JavaScript from a local file, standard input or gh:username/script, as an alternative to --javascriptwhich accepts the string of JavaScript directly as an argument. #192 shot-scraper multi supports the equivalent js_file: YAML key. The shot-scraper javascript and shot-scraper html commands now have a --timeout option for consistency with other commands. #118
需要完整排版与评论请前往来源站点阅读。