shot-scraper 1.11

Simon Willison's Blog 工具

摘要

shot-scraper 1.11 发布,带来了一些小改进,例如服务器进程更长的等待时间,以及新增了 --js-file 和 --timeout 命令选项以保持一致性。

暂无内容
查看原文
查看缓存全文

缓存时间: 2026/07/13 07:54

# 发布:shot-scraper 1.11 来源:https://simonwillison.net/2026/Jul/12/shot-scraper/ 发布 (https://simonwillison.net/elsewhere/release/) shot-scraper 1.11 (https://github.com/simonw/shot-scraper/releases/tag/1.11) — 一款用于截取网站截图、录制视频演示以及使用 JavaScript 抓取网站的 CLI 工具。 一些小的改进,主要集中在命令选项的一致性上,以及让 `shot-scraper video` 和 `shot-scraper multi` 使用的 `server:` 机制在服务器启动需要超过一秒时也能正常工作。 > - `shot-scraper multi` 和 `shot-scraper video` 使用的 `server:` 进程现在最多等待 30 秒,让目标 URL 接受连接,通过轮询端口可用性来替代之前固定的一秒延迟。#197 (https://github.com/simonw/shot-scraper/issues/197) > - `shot-scraper`、`pdf`、`html`、`accessibility` 和 `har` 命令现在新增了 `--js-file` 选项,用于从本地文件、标准输入或 `gh:username/script` 加载 JavaScript,替代直接接受 JavaScript 字符串作为参数的 `--javascript` 选项。#192 (https://github.com/simonw/shot-scraper/issues/192) > - `shot-scraper multi` 支持等价的 `js_file:` YAML 键。 > - `shot-scraper javascript` 和 `shot-scraper html` 命令现在有了 `--timeout` 选项,以与其他命令保持一致。#118 (https://github.com/simonw/shot-scraper/issues/118)

相似文章

shot-scraper 1.10

Simon Willison's Blog

宣布 shot-scraper 1.10 版本,这是一个通过命令行界面进行截图的开发者工具。

D4Vinci/Scrapling

GitHub Trending (daily)

Scrapling 是一个现代、自适应的 Python 网页抓取库,能够处理反爬虫措施,并提供高级选择、获取和爬虫功能。

BugShot

Product Hunt

BugShot 是一款工具,帮助开发者一步完成发现、修复、捕获和报告 Bug。

Klyxshot

Product Hunt

Klyxshot 是一款新的截图工具,具备 AI 功能,可在截图过程中辅助用户。