
shot-scraper
CLISimon Willison 出品的网页截图命令行:可按 YAML 批量截图、录制演示视频、导出 PDF 与 HTML,也能在页面中执行 JavaScript 提取数据、输出无障碍树。基于 Playwright,首次需安装浏览器。
shot-scraper
A CLI utility for taking screenshots of websites, recording video demos and scraping sites using JavaScript
For background on this project see shot-scraper: automated screenshots for documentation, built on Playwright.
Documentation
- Full documentation for shot-scraper
- Tutorial: Automating screenshots for the Datasette documentation using shot-scraper
- Release notes
Get started with GitHub Actions
To get started without installing any software, use the shot-scraper-template template to create your own GitHub repository which takes screenshots of a page using shot-scraper. See Instantly create a GitHub repository to take screenshots of a web page for details.
Quick installation
You can install the shot-scraper CLI tool using pip:
pip install shot-scraper
# Now install the browser it needs:
shot-scraper install
Taking your first screenshot
You can take a screenshot of a web page like this:
shot-scraper https://datasette.io/
This will create a screenshot in a file called datasette-io.png.
Many more options are available, see Taking a screenshot for details.
Examples
- The shot-scraper-demo repository uses this tool to capture recently spotted owls in El Granada, CA according to this page, and to generate an annotated screenshot illustrating a Datasette feature as described in my blog.
- The Datasette Documentation uses screenshots taken by
shot-scraperrunning in the simonw/datasette-screenshots GitHub repository, described in detail in Automating screenshots for the Datasette documentation using shot-scraper. - Ben Welsh built @newshomepages, a Twitter bot that uses
shot-scraperand GitHub Actions to take screenshots of news website homepages and publish them to Twitter. The code for that lives in palewire/news-homepages. - scrape-hacker-news-by-domain uses
shot-scraper javascriptto scrape a web page. See Scraping web pages from the command-line with shot-scraper for details of how this works. - Reuters uses shot-scraper to generate regularly updating data dashboards for email newsletters.
相關資源

Browser Use MCP
MCPBrowser Use 官方内置的本地 MCP 服务:让 agent 导航、点击、输入、提取网页内容,或把多步任务交给内置浏览器 agent 自主完成。需自备 OpenAI 或 Anthropic API Key。
browser-use/browser-use118k
ExecuteAutomation Playwright MCP Server
MCP社区维护的 Playwright 浏览器自动化 MCP(ExecuteAutomation 出品,非微软官方):导航、点击、填表、截图、抓取页面文本,还能发送 HTTP 请求、断言网络响应、录制操作生成测试代码,内置 143 种设备模拟。
executeautomation/mcp-playwright5.7k
Browser Use
CLI开源浏览器 agent 项目,提供 browser-use 命令行,让 Claude Code、Codex 等 agent 用 Python 片段操控本机已登录的 Chrome,也可连接云端浏览器;同时提供 Python agent 库。云浏览器需 API Key。
browser-use/browser-use118k
Scrapling
CLI自适应网页抓取框架:scrapling extract 一条命令即可把网页抓成 Markdown、纯文本或 HTML,支持 CSS 选择器与浏览器渲染动态页面,另有 MCP 服务(需装 ai 扩展)。需 Python 3.10+,首次使用需安装浏览器。
D4Vinci/Scrapling88.1k
Playwright
CLI微软官方的跨浏览器端到端测试框架:一套 API 驱动 Chromium、Firefox 与 WebKit,npx playwright test 并行隔离跑测,自带自动等待与 Trace 回放排查失败。
microsoft/playwright97.9k
Scrapling
MCP自适应 Python 爬虫框架 Scrapling 内置的 MCP 服务:支持普通 HTTP 请求、浏览器渲染与隐身抓取,可用 CSS 选择器只把目标内容交给 AI,节省 token 并过滤提示注入内容。
D4Vinci/Scrapling88.1k