webframe: evaluated as a scraper and a sandbox
研究:webframe:被评估为一个爬虫和沙盒框架,webframe 是 Jeff Lindsay 的一个简洁的小项目,它让你“像运行程序一样运行网页”——你把它指向一个 URL 或文件,它会在一个隐藏的无头网页视图中执行它,并将 console.log() 输出到标准输出,任何异常输出到标准错误。它使用 glaze 库用 Go 编写,该库提供了对系统浏览器的访问(“macOS 上的 WKWebView,Linux 上的 WebKitGTK,Windows 上的 WebView2”,因此它不需要捆绑自己的浏览器引擎。这让我想起了我自己的 shot-scraper JavaScript 工具,尽管它是一个更小的包装,不依赖 Playwright。我让 Claude Opus 5.5 对它进行了测试,并为我准备了一份研究报告。我使用的提示是:探索 https://github.com/tractordev/webframe,尝试运行它,并对其进行测试,构建几个探索性原型,然后评估它作为潜在沙盒工具和作为使用“shot-scraper JavaScript”命令鼓励的相同模式来抓取网页的工具。 (参见 GitHub 上的 simonw/shot-scraper,文档目录)标签:浏览器,go,javascript,jeff-lindsay,shot-scraper
Research: webframe: evaluated as a scraper and a sandbox webframe is a neat little project from Jeff Lindsay which lets you "run a web page like a program" - you point it at a URL or file and it executes it in a hidden headless web view and outputs console.log() to standard output and any exceptions to standard error. It's written in Go on top of the glaze library, which provides access to a system browser ("WKWebView on macOS, WebKitGTK on Linux, WebView2 on Windows") so it doesn't need to bundle its own browser engine. It reminds me of my own shot-scraper javascript tool, albeit in a much smaller package that doesn't depend on Playwright. I had Claude Opus 5.5 put it through its paces and prepare a research report for me. Here's the prompt I used: Explore https://github.com/tractordev/webframe try running it and put it though its paces, build a few exploratory prototypes, then evaluate it as a potential sandboxing tool and as a tool for scraping web pages using the same patterns encouraged by the "shot-scraper JavaScript" command (see simonw/shot-scraper on GitHub, docs directory) Tags: browsers , go , javascript , jeff-lindsay , shot-scraper