shot-scraper 1.11 のリリース
Simon Willison が開発するスクリーンショット自動化ツール「shot-scraper」のバージョン 1.11 で、サーバー待機時間の改善や JavaScript ファイル読み込み機能の追加など、コマンドの一貫性と安定性が向上した。
キーポイント
サーバー起動待機時間の柔軟化
video および multi コマンドで使用するサーバーが 1 秒以内に起動しない場合でも、最大 30 秒間ポーリングして接続を待つ仕組みに改善された。
JavaScript ファイル読み込み機能の追加
shot-scraper, pdf, html, accessibility, har コマンドに --js-file オプションが追加され、ローカルファイルや標準入力、GitHub リポジトリからスクリプトを読み込めるようになった。
YAML 設定の拡張とコマンド一貫性
multi コマンドで js_file: キーがサポートされ始め、javascript および html コマンドには他のコマンドに合わせた --timeout オプションが追加された。
影響分析・編集コメントを表示
影響分析
このアップデートは、スクリーンショットや動画の自動化スクリプトを運用する開発者にとって、特にサーバー起動時のタイムアウトエラーを解消し、複雑な JavaScript ロジックを外部ファイルで管理することを可能にする実用的な改善です。AI や大規模言語モデルの直接的な技術革新ではありませんが、QA 自動化やドキュメント生成などのワークフローを支えるインフラツールの安定性を高める重要なステップです。
編集コメント
AI モデルの出力検証やドキュメント生成プロセスにおけるスクリーンショット取得の信頼性を高める、堅牢なツールアップデートです。
リリース: shot-scraper 1.11
今回はコマンドオプションの整合性向上や、サーバー起動に 1 秒以上かかる場合でも shot-scraper video や shot-scraper multi で利用される「server:」メカニズムが正常に動作するよう改善した、いくつかのマイナーアップデートです。
shot-scraper multiとshot-scraper videoが使用するサーバープロセスは、ターゲット URL からの接続受け入れを最大 30 秒間待ちます。ポートの利用可否を確認しながらポーリングを行う仕組みに変更され、従来の固定された 1 秒待機が置き換えられました。shot-scraper、pdf、html、accessibility、harコマンドに、ローカルファイルや標準入力、あるいはgh:username/scriptから JavaScript を読み込むための--js-fileオプションが追加されました。これは、引数として直接 JavaScript 文字列を指定する--javascriptオプションの代替手段です。shot-scraper multiでも同様に、YAML キーにjs_file:を使用できるようになりました。- コマンド間の整合性を図るため、
shot-scraper javascriptとshot-scraper htmlに--timeoutオプションが追加されました。
Tags: shot-scraper
原文を表示
Release: shot-scraper 1.11
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
Tags: shot-scraper
関連記事
今日のまとめ
AI日報で今日の重要ニュースをまとめ読み